[gstreamer-bugs] [Bug 594504] Need a GType of "Date AND Time AND Timezone"

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Fri Jan 8 11:17:38 PST 2010


https://bugzilla.gnome.org/show_bug.cgi?id=594504
  GStreamer | gstreamer (core) | git

--- Comment #20 from Thiago Sousa Santos <thiago.sousa.santos at collabora.co.uk> 2010-01-08 19:17:34 UTC ---
how about proposing the struct below to glib. 

struct _GDateTime
{
  GDate date;        /* date (DMY) */
  guint32 msecs;     /* milisecs since the start of the day */

  guint16 tz_offset; /* timezone offset in minutes */
  gboolean dst;      /* if it is on daylight saving time */
};

This way we get the g_date_* functions for free.
The other option is already store in the struct the same way we'd like to store
in GValues.

What do you think?

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.




More information about the Gstreamer-bugs mailing list