Boost logo

Boost Users :

Subject: Re: [Boost-users] obtaining the current timezone
From: Igor R (boost.lists_at_[hidden])
Date: 2011-02-25 05:34:48


> Is there a way using boost.datetime to obtain the current time zone.

AFAIK, there is no such way.

On windows you can do something like this:
    TIME_ZONE_INFORMATION tz;
    GetTimeZoneInformation(&tz);
    posix_time::time_duration time_zone = posix_time::minutes(tz.Bias);


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