$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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);