Boost logo

Boost Users :

Subject: Re: [Boost-users] [datetime] local_date_time and time zone issues
From: Roland Bock (rbock_at_[hidden])
Date: 2009-01-10 16:22:25


Hi,

Calling local_time on a local_date_time object returns a ptime object
which represents wall time within the given time zone. See also

http://lists.boost.org/boost-users/2008/11/41946.php

Regards,

Roland

Boris wrote:
> On Wed, 07 Jan 2009 19:26:01 +0100, Roland Bock <rbock_at_[hidden]> wrote:
>
>> Hi,
>>
>> you also should change your last line to
>>
>> std::cout << dt1.local_time_in(tz2).local_time() << std::endl;
>
> Is this a work-around to drop the CET from the output or is there a good
> reason? :)
>
> Boris
>
>> [...]
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users


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