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

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Wed Sep 9 03:16:32 PDT 2009


http://bugzilla.gnome.org/show_bug.cgi?id=594504



--- Comment #16 from Arnout Vandecappelle <arnout at mind.be> 2009-09-09 10:16:26 UTC ---
(In reply to comment #13)
> > That doesn't handle DST separate from the timezone and Edward wanted that
> > (why?)
> 
>   Because 12:00 at GMT (!DST) does not represent the same moment in time as
> 6:00 GMT-6 (DST). Different countries changed DST at different times. And some
> countries don't at all.
> 
>   Real case example :
>    Plenty of people from around the world come to a certain conference. Some
> will set their clock properly, some others not. People take plenty of
> photos/videos, and at the end of the conference you grab them all because you
> want to make a nice edit.
>    Now there's one scene which many people took (like Linus shaving bdale's
> beard) from many different angles. You want to be able to figure out really
> quickly which photos/videos happen at the same time. If you have the *exact*
> time for everything... you can do it easily... else you'll have to find it
> yourself.

 So why do you need timezone info and not just UTC timestamp?  You need to be
able to parse different string formats into consistent timestamps so you can
compare them.  Timezone info is not relevant at that point.  You could even use
a GTimeVal (except that that doesn't go beyond 2038 and doesn't have nanosec
precision).

 For me, the use case was e.g. picking images from a video stream, storing them
as JPEG files, and making sure the EXIF info has the correct creation date. 
For that, you need to add the frame offset to the video creation date, and
regenerate the date in the original local time.

-- 
Configure bugmail: http://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