Boost logo

Boost Users :

Subject: Re: [Boost-users] 32 bit time stamp to date and time
From: Mika Heiskanen (mika.heiskanen_at_[hidden])
Date: 2010-10-24 03:49:14


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 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