J. | 6 Oct 2003 23:02
Picon
Picon
Favicon

Re: convert time to UTC, THNKX ... solved ...

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", &timestruct) == 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


Gmane