Boost logo

Boost :

From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2002-04-24 15:14:44


"Peter Dimov" <pdimov_at_[hidden]> wrote in message
news:008901c1ebc0$aafb5210$1d00a8c0_at_pdimov2...
> From: "Mark Rodgers" <mark.rodgers_at_[hidden]>
> >
> > Why not a time_put/strftime pattern string?
> >
> > os << date::set_format( "%B %d,%Y %w %H:%M%:%S" ) << adate;
>
> A pattern string is not locale-independent... %Y-%m-%d, %d.%m.%Y, %m/%d/%Y
> are the same format in Japan, Europe, US.

I many application I do not bother about locales. While I need time output
format to be dynamic. Stringified version would work better here.

Gennadiy.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk