Boost logo

Boost Users :

From: Judicaël Bedouet (j.bedouet_at_[hidden])
Date: 2008-06-30 16:01:27


Hello,

When I do
std::cout << boost::posix_time::time_from_string ("2008-06-26 0");
output is
2008-Jun-26 00:00:00

But when I do
std::cout << boost::posix_time::time_from_string ("2008-06-26");
output is
2008-Sep-17 16:06:26

Isn't a bug ?
Even if this format is not accepted, should not it throw an exception ?

J. Bedouet


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