Re: [Boost-users] posix_time::from_ftime versus DateTime.FromFileTime

Archie14@lists.boost.org wrote:
DateTime.FromFileTimeUtc will probably produce the same results as boost::posix::time::from_ftime. Perhaps DateTime.SpecifyKind are needed as well. Regards, Anders Dalvander

Anders Dalvander
in
Well, the value "dt" is obtained like this: Int64 tm = startdate.ToFileTime(); DateTime dt = DateTime.FromFileTime (tm); My guess is that if tm is expressed in Utc then I should get it back in Utc as well, but it does not happen - I am getting it back in EST. My question is this: suppose I have a value that holds FILETIME. My believe is that it supposed to be understood the same way in C# or boost, without any additional external knowledge of timezones etc. I can provide two test projects if necessary to demonstrate the effect
participants (2)
-
Anders Dalvander
-
Archie14