On Tue, Mar 19, 2013 at 12:57 PM, John Graybeal <[email protected]> wrote:
> Thanks Aleksander for pushing in this direction.
Thanks!
> On the other hand, we should limit it to only the formats expressing an
> instance of date/time (meaning single date or date + time), and exclude the
> range or duration notations from this particular standard name. (Because
> those are inherently different quantities in different units.) Can add those
> as needed later.
Here are the formats I proposed:
<datetime> = <date> "T" <time> <timezone> ;
<date> = YYYY "-" MM "-" DD | YYYY "-" DDD ;
<time> = hh | hh ":" mm | hh ":" mm ":" ss | hh ":" mm ":" ss "." S
| hh ":" mm ":" ss "," S ;
<timezone> = "" | "Z" | "+" hh | "+" hh ":" mm | "-" hh | "-" hh ":" mm
Where:
* "YYYY" is a four-digit year (0000-9999).
* "MM" is a two-digit month of the year (01-12).
* "DD" is a two-digit day of the month (01-31).
* "DDD" is a three-digit ordinal day of the year (001-366).
* "hh" is a two-digit hour (00-23).
* "mm" is a two-digit minute (00-59)
* "ss" is a two-digit second (00-59).
* "S" is one or more digits representing a decimal fraction of the
second.
* The value of any designator when not specified is zero.
* If <timezone> is ommitted the default value is "Z".
Would you like more added? I tried to capture pretty much all the
variations for datetime instances.
-Aleksandar
_______________________________________________
CF-metadata mailing list
[email protected]
http://mailman.cgd.ucar.edu/mailman/listinfo/cf-metadata