Hello, All!
#include
#include <iostream>
int main()
{
using namespace boost::posix_time;
using namespace boost::gregorian;
date d(1990,1,1);
ptime t(d);
std::cout << to_simple_string(t);
return 0;
}
I have tested this sample under 4 compilers - vc7, gcc 2.96 asplinux,
builder 5.6.4 and kylix3 (compiler borland 5.6). Under Kylix it produce
floating point error. I figure out that this happens because t, after this
line
ptime t(date(1990,1,1));
have {0} (as i see in debuger).
Is this library or kylix bug? It seems to be a __int64 arithmetic error
but i am not sure.
With best regards, Konstantin M. Litvinenko aka Dark Angel. E-mail:
darkangel@malva.ua