Re: [PATCH 3/6] core: added grl_media_set_date_from_iso8601()
- From: "Juan A. Suarez Romero" <jasuarez igalia com>
- To: grilo-list gnome org
- Subject: Re: [PATCH 3/6] core: added grl_media_set_date_from_iso8601()
- Date: Thu, 30 Jun 2011 12:12:01 +0200
On Thu, 2011-06-30 at 12:05 +0200, Guillaume Emont wrote:
> > For me, the ideal solution would be GLib having a:
> >
> > g_date_time_from_iso8601 (const gchar *iso_date, GDateTime *date_);
> >
> > in the same spirit as g_time_val_from_iso8601().
> Would make sense, though, like for g_time_val_from_iso8601(), glib
> might
> not want the same thing as we do for "incomplete" datetimes that do
> not
> specify a time.
Maybe, but if it is useful for us and for people using Grilo, then i
think we should provide them.
> > And probably the other
> > way around: g_date_time_to_iso_8601().
> g_date_time_format("%FT%H:%M:%S%z") already does that.
Easier then. g_date_time_to_iso8601() should be an utility function that
would invoke g_date_time_format() with that string.
The point is having a couple of functions to convert to/from iso8901 and
GDateTime.
J.A.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]