[FFmpeg-devel] parse_date using localtime etc.

Michael Niedermayer michaelni
Fri Feb 6 15:56:01 CET 2009

On Fri, Feb 06, 2009 at 03:17:04PM +0100, Reimar D?ffinger wrote:
> I forgot...
> On Fri, Feb 06, 2009 at 02:47:05PM +0100, Michael Niedermayer wrote:
> > > Or make an av_localtime_r?
> > 
> > yes, write a clean, short (max 1 page of code) implementation of localtime()
> I hope you do not mean one without using localtime, localtime_r or
> localtime_s? 

> How is that supposed to be maintainable, you need the data
> about all summer-time switching dates, 

you can ignore summer time as well

> when there were leap seconds and

thats an array of 30 entries or so with 1 entry added per year.

> if the current time zone used them or not and possibly more stuff.
> Not to mention that linux, Windows, OSX all use a different format for
> time_t.

well, IMHO either we can implement it cleanly, portably and with little
code or we should just drop it


Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I wish the Xiph folks would stop pretending they've got something they
do not.  Somehow I fear this will remain a wish. -- M?ns Rullg?rd
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090206/4531a034/attachment.pgp>

More information about the ffmpeg-devel mailing list