6 Oct 2003 23:02
Re: convert time to UTC, THNKX ... solved ...
J. <j.reynders <at> xs4all.nl>
2003-10-06 21:02:52 GMT
2003-10-06 21:02:52 GMT
On Fri, 3 Oct 2003, Luciano Miguel Ferreira Rocha wrote: > On Wed, Oct 01, 2003 at 09:40:44PM +0200, J. wrote: > > if(strptime(tstr, "%a %b %d %T %Ey", ×truct) == 0) > ^^^^ > You should use %Y, %y or %EY. For %Ey, the number is an offset from %EC, > that in my current locale is 1900. > > So the year is ending up in 3903, beyond the 32/31 bit limit for the > number of seconds from Jan 1 1970. > > Regards, > Luciano Rocha Ah great it works ... ! As you suggested. Merci J. -- AonkyKong - To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in the body of a message to majordomo <at> vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
RSS Feed