Boost logo

Boost :

From: Jeff Garland (jeff_at_[hidden])
Date: 2003-12-03 17:05:40


On Wed, 03 Dec 2003 15:39:37 -0500, Hugo Duncan wrote
> Jeff, all,
>
> I am trying to perisist a gergorian::date object. I see that there
> is an undocumented date::day_count to access the internal state, but
> no way to reconstruct the date object.
>
> How about a from_day_count() similar to from_time_t() ?

Why not persist as a string (eg: 2003-Nov-03) using to_simple_string and
from_simple_string? This way they are human readable as well.

Jeff


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