|
Boost Users : |
Subject: Re: [Boost-users] 32 bit time stamp to date and time
From: Lloyd (lloyd_at_[hidden])
Date: 2010-10-24 09:55:24
Thanks a lot. Now I understood it.
Is it possible to get day of week (Sunday, monday,...saturday) from ptime?
Thanks again,
Lloyd
>
> time_t is number of seconds since 1/11970
> If your input is the number of seconds since 1/1/1900, then before
> using from_time_t() you have to add the number of seconds between
> 1/1/1900 and 1/1/1970.
> IIRC, it's (70 * 365 + 17) * 86400
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
______________________________________
Scanned and protected by Email scanner
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net