[erlang-questions] strftime for formatting dates and times

Kenny Stone <>
Wed Jun 22 15:40:15 CEST 2011


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.

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... :)


2011/6/22 Masklinn <>

> On 2011-06-21, at 19:38 , Björn-Egil Dahlberg wrote:
> > On 2011-06-21 17:28, Adam Lindberg wrote:
> >> Would love this being integrated into calendar! (Or appropriate module,
> >> although I think calendar should be the one)
> >
> > I like this also and I probably would want something similar folded into
> calendar or another module.
> >
> > * Abit of topic *
> >
> > 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.
> >
> 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.
>
> 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.
>
> _______________________________________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20110622/4294f646/attachment.html>


More information about the erlang-questions mailing list