|
Boost Users : |
Subject: Re: [Boost-users] posix_time::from_ftime versus DateTime.FromFileTime
From: Anders Dalvander (boost_at_[hidden])
Date: 2009-05-22 02:28:26
Archie14_at_[hidden] wrote:
> I will appreciate any help in sorting out following issue:
>
> There is a value dt of type long. Calling boost::posix::time::from_ftime in
> c++ and
> DateTime.FromFileTime with that value produce "slightly" different results:
>
> dt = 128822886020000000
>
> c++: "2009-Mar-23 13:30:02"
> c#: {3/23/2009 9:30:02 AM}
>
DateTime.FromFileTimeUtc will probably produce the same results as
boost::posix::time::from_ftime. Perhaps DateTime.SpecifyKind are needed
as well.
Regards,
Anders Dalvander
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