FamilySearch / gedcomx

An open data model and an open serialization format for exchanging genealogical data.
http://www.gedcomx.org
Apache License 2.0
359 stars 67 forks source link

What is the timestamp format? #290

Closed justincy closed 8 years ago

justincy commented 8 years ago

The spec doesn't appear to specify the format, just the contents:

A "timestamp" refers to an instance of time, including values for year, month, date, hour, minute, second and timezone.

Is that an omission in the docs or does the spec really not specify? I think there ought to be a standard format. Though I'm not aware of any date-time standard other than ISO 8601 that specify the date and time parts so perhaps ISO 8601 is assumed?

stoicflame commented 8 years ago

The conceptual model doesn't define any formats. The formats are defined by the serialization format specs. XML already has a format defined (xs:dateTime). JSON format had to be specified as a number (milliseconds since epoch).