Subject: Re: [boost] [Boost.Locale] Upcoming Boost.Locale version
From: Artyom (artyomtnk_at_[hidden])
Date: 2010-08-24 10:13:50
> 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?")
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.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk