
24 Aug
2010
24 Aug
'10
2:13 p.m.
<snip>
For human you would write
time_t time_point=time(0); std::cout << as::date_time << time_point;
// may be something like 03/02/2010 12:30:02
So is that 3 Feb 2010 or 2 Mar 2010 ;-)
Or are the reader and the locale assumed the same?
(When "Assumption is the mother of all foul ups?")
Paul
Exactly, that is why looking at localization as serialization is incorrect. So for internal representation you should always pic locale independent representation. For example for number C or binary, for dates ISO format like 2010-02-03 12:30:02 GMT. Artyom