⇐ ⇒

[CF-metadata] New standard name: datetime_iso8601

From: John Graybeal <jgraybeal>
Date: Tue, 19 Mar 2013 12:12:04 -0700

> I tried to capture pretty much all the variations for datetime instances.

That is ideal, thanks.

John


On Mar 19, 2013, at 11:51, Aleksandar Jelenak - NOAA Affiliate <aleksandar.jelenak at noaa.gov> wrote:

> 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
> _______________________________________________
> CF-metadata mailing list
> CF-metadata at cgd.ucar.edu
> http://mailman.cgd.ucar.edu/mailman/listinfo/cf-metadata
>


----------------
John Graybeal <mailto:jgraybeal at ucsd.edu> phone: 858-534-2162
Product Manager
Ocean Observatories Initiative Cyberinfrastructure Project: http://ci.oceanobservatories.org
Marine Metadata Interoperability Project: http://marinemetadata.org
Received on Tue Mar 19 2013 - 13:12:04 GMT

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

⇐ ⇒