Boost logo

Boost :

From: Jeff Garland (jeff_at_[hidden])
Date: 2005-04-23 12:15:54


On Sat, 23 Apr 2005 18:04:56 +0300, Peter Dimov wrote
> Jeff Garland wrote:
> > I think there are some other considerations here with date-time.
> > What if you want to replace the short or long strings associated with
> > a month output? Or I want the 'days of the week' be 'day1', 'day2',
> > instead of 'Sun', 'Mon', etc. For these cases I think the strings
> > need to get associated with a facet instead of a fleeting i/o
> > manipulator.
>
> You are right. However there are legitimate cases where I might want
> both. That is, override the locale-specific month names using a
> facet _and_ choose a strftime-style date format independently. So I
> think that you need both a facet (for storing locale-dependent
> information for %a, %A, %b, %B, %c, %p, %r, %x, %X, and the other
> locale-dependent specifiers) and a manipulator for the format string.

Yep, I can see the convenience of having the manipulator. For now though
users will have to reset formats thru the facets...

Jeff


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