Boost logo

Boost Users :

Subject: Re: [Boost-users] 32 bit time stamp to date and time
From: Lloyd (lloyd_at_[hidden])
Date: 2010-10-24 08:37:51


Sorry, I did not understand. My doubt is

if the 32bit input value is 70 (70 seconds since 1900), the output would be
1900-01-01, 00:01:10., and the day of week is Monday

By using the function "from_time_t " can we get this output?

Thanks,
  Lloyd

----- Original Message -----
From: "Mika Heiskanen" <mika.heiskanen_at_[hidden]>
To: <boost-users_at_[hidden]>
Sent: Sunday, October 24, 2010 1:19 PM
Subject: Re: [Boost-users] 32 bit time stamp to date and time

> On Sun, 2010-10-24 at 08:32 +0300, Lloyd wrote:
>
>> I am writing a simple NTP client. NTP retuns the time as a 32bit
>> value, as the seconds since 1900. using boost date time library is it
>> possible to convert it to a date and time (year,month,day of
>> week,day,hour,minute,second) ?
>
> from_time_t minus the seconds between 1900-1970.
>
> --> Mika
>
>
> _______________________________________________
> 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