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

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Thu Apr 29 14:21:09 PDT 2010


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

--- Comment #23 from Thiago Sousa Santos <thiago.sousa.santos at collabora.co.uk> 2010-04-29 21:21:06 UTC ---
Created an attachment (id=159947)
 View: https://bugzilla.gnome.org/attachment.cgi?id=159947
 Review: https://bugzilla.gnome.org/review?bug=594504&attachment=159947

gstvalue: Add datetime gvalue

Simple patch that implements the datetime fields all separate into
the GValue.

>From the code:
/*
 * Brief explanation of datetime representation in a GValue:
 *
 * We store each field separately, they are: year, month, day of month,
 * hour, minute, second, nanosecs, timezone (in minutes), dst (bit)
 *
 * Those are stored as:
 * at the first uint64:
 *   unused:24, year:16, month:4, day:5, hour:5, minutes:4, secs:6
 * at the second uint64:
 *   unused:22, nanosecs:30, timezone:11, dst:1
 *
 * TODO:
 * - how to do validation?
 */

How does it sound?

(Yes, tests are needed, this is just to give an idea)

-- 
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