[eml-dev] dateTime format strings
Matt Jones
jones at nceas.ucsb.edu
Fri Jun 20 04:42:26 PDT 2014
Hey Carl --
I don't know of a library for converting the format strings per se. The
EML strings are ISO 8601 format strings, with some additions that allow us
to handle real-world data that is not compliant with ISO 8601. This makes
it messy. Many date-time libraries in multiple languages will convert ISO
dates to POSIX dates. So, you might be able to leverage that. Some
approaches are described here:
http://stackoverflow.com/questions/2201925/converting-iso8601-compliant-string-to-java-util-date
The EML format strings are described here:
https://knb.ecoinformatics.org/#external//emlparser/docs/eml-2.1.1/./eml-attribute.html#formatString
Date-time values are a huge time sink.
Matt
On Thu, Jun 19, 2014 at 7:26 PM, Carl Boettiger <cboettig at gmail.com> wrote:
> Hi list,
>
> Are there any resources already available for mapping between POSIX
> dateTime formatting strings and the EML <dateTime><formatString> convention?
>
> For instance, map the EML string "YYYY" to "%Y", etc?
>
> Thanks!
>
> Carl
>
> --
> Carl Boettiger
> UC Santa Cruz
> http://carlboettiger.info/
>
> _______________________________________________
> Eml-dev mailing list
> Eml-dev at ecoinformatics.org
> http://lists.nceas.ucsb.edu/ecoinformatics/mailman/listinfo/eml-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nceas.ucsb.edu/ecoinformatics/pipermail/eml-dev/attachments/20140620/4603d1c0/attachment.html>
More information about the Eml-dev
mailing list