Boost logo

Boost :

From: Jeff Garland (jeff_at_[hidden])
Date: 2002-07-15 12:24:05


Victor Wagner wrote:
> my reading of the ISO webpage leads me to believe that the T is
> only required if you drop all the other delimeters so:
> 2002-06-07 14:52:03Z would be ok, but you'd need the T for

The above is the iso 'extended form' minus the time separator char.

> 20020607T145203

This is the iso basic format.

> this is only an opinion, I'm _not_ a real language lawyer.

The spec does allow the separator to be dropped in applications that have no risk of confusing dates and times for both the basic
and extended form. Seems like there is no risk of confusion here. That would be a nice choice b/c the 'T' is not a very good
delimiter for humans. So

2002-06-07 14:52:03Z

would probably be the best. BTW, if fractional seconds are needed either of the following are valid:

2002-06-07 14:52:03,25Z
2002-06-07 14:52:03.25Z

Jeff


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