Boost logo

Boost :

From: Kostya Altukhov (kostya_at_[hidden])
Date: 2002-04-25 06:41:35


Mark Rodgers wrote:

>Why not a time_put/strftime pattern string?
>
>os << date::set_format( "%B %d,%Y %w %H:%M%:%S" ) << adate;
>
I second this. Then there should be similar mechanism to read
a date from stream according to the pattern string. Something
similar to strptime function many implementations provide.

In my own home-made date class, I have 'Unformat' function
that does just that. But it's not based on streams, it works with
strings.

Best regards,
Kostya


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