I didn't know there was a standard for strftime implementations... I'd also never really considered it a DSL, although I can see that.<div><br></div><div>I found myself writing a lot of the same code over and over again, so I wrote a simple library. Lots of languages have this method.  It's handy, simple, usable, practical; all things I like in my methods.  It uses established patterns that have worked for many years over many languages and many picky developers.  Also things I like... :)</div>

<div><br></div><div><br></div><div><div class="gmail_quote">2011/6/22 Masklinn <span dir="ltr"><<a href="mailto:masklinn@masklinn.net">masklinn@masklinn.net</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="im">On 2011-06-21, at 19:38 , Björn-Egil Dahlberg wrote:<br>
> On 2011-06-21 17:28, Adam Lindberg wrote:<br>
>> Would love this being integrated into calendar! (Or appropriate module,<br>
>> although I think calendar should be the one)<br>
><br>
> I like this also and I probably would want something similar folded into calendar or another module.<br>
><br>
> * Abit of topic *<br>
><br>
> This weekend a wrote something similar looking at python, ruby and perl api:s for datetime, time and calendar functionality. Trying to get a feel for what would be ok. However, most of those api:s are emulations of standard C time conversions. gmtime, mktime, localtime etc. Horrible horrible syntax in my opinion. On the other hand it is rather familiar.<br>


><br>
</div>Though it's mostly object-oriented (and quite verbose owing to being Java), Joda-Time is generally considered a pretty nice API for an API handling just about everything related to date and time.<br>
<br>
See also JSR-310, which was authored by Joda's original developer and is an evolution of Joda (rather than a port or direct evolution) using lessons learned from Joda.<br>
<div><div></div><div class="h5"><br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</div></div></blockquote></div><br></div>