From: Jeff Garland (jeff_at_[hidden])
Date: 2006-01-30 20:59:24


On Mon, 30 Jan 2006 19:00:09 -0500, Christian Henning wrote
> Hi there, is it possible to construct a ptime with an __int64. The
> internal representation is of the same type. I couldn't find anything
> on this issue.

I don't think I recommend it and haven't tried it recently, but it appears
that it's possible. See:

http://www.boost.org/doc/html/ptime.html

 ptime(const time_rep_type &);

I don't recommend it because of the obvious violation of encapsulation and the
fact that if you recompile with the 96 bit internal representation your code
will break. Oh, and if you want it to be portable, you should use
boost::int64_t instead of __int64.

Jeff