<div dir="ltr">Hey Carl --<div><br></div><div>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:</div>
<div>  <a href="http://stackoverflow.com/questions/2201925/converting-iso8601-compliant-string-to-java-util-date">http://stackoverflow.com/questions/2201925/converting-iso8601-compliant-string-to-java-util-date</a></div><div>
<br></div><div>The EML format strings are described here:</div><div>  <a href="https://knb.ecoinformatics.org/#external//emlparser/docs/eml-2.1.1/./eml-attribute.html#formatString">https://knb.ecoinformatics.org/#external//emlparser/docs/eml-2.1.1/./eml-attribute.html#formatString</a></div>
<div><br></div><div>Date-time values are a huge time sink.</div><div><br></div><div>Matt</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jun 19, 2014 at 7:26 PM, Carl Boettiger <span dir="ltr"><<a href="mailto:cboettig@gmail.com" target="_blank">cboettig@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi list,<div><br></div><div>Are there any resources already available for mapping between POSIX dateTime formatting strings and the EML <dateTime><formatString> convention?</div>
<div><br></div><div>
For instance, map the EML string "YYYY" to "%Y", etc? </div><div><br></div><div>Thanks!</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Carl<br clear="all"><div><br></div>-- <br><div dir="ltr">
Carl Boettiger<br>UC Santa Cruz<br>
<a href="http://carlboettiger.info/" target="_blank">http://carlboettiger.info/</a><br></div>
</div></font></span></div>
<br>_______________________________________________<br>
Eml-dev mailing list<br>
<a href="mailto:Eml-dev@ecoinformatics.org">Eml-dev@ecoinformatics.org</a><br>
<a href="http://lists.nceas.ucsb.edu/ecoinformatics/mailman/listinfo/eml-dev" target="_blank">http://lists.nceas.ucsb.edu/ecoinformatics/mailman/listinfo/eml-dev</a><br>
<br></blockquote></div><br></div>