⇐ ⇒

[CF-metadata] New standard name: datetime_iso8601

From: Aleksandar Jelenak - NOAA Affiliate <aleksandar.jelenak>
Date: Tue, 19 Mar 2013 14:51:30 -0400

On Tue, Mar 19, 2013 at 12:57 PM, John Graybeal <jgraybeal at ucsd.edu> 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
Received on Tue Mar 19 2013 - 12:51:30 GMT

This archive was generated by hypermail 2.3.0 : Tue Sep 13 2022 - 23:02:41 BST

⇐ ⇒