Erlang/OTP Forums

Author Message

<  User Contributions  ~  edate: erlang date manipulation library

5hundy
Posted: Sat Jul 03, 2010 11:39 pm Reply with quote
User Joined: 14 Oct 2007 Posts: 17
I borrowed ideas from the ruby Date class and the time calculation extensions in rails to create edate. Check it out and let me know if I'm missing anything that would be helpful. Examples:

Date = edate:string_to_date("7/15/2010").
{2010,7,15}
> edate:end_of_month(Date).
{2010,7,31}
> edate:shift(Date, 52, weeks).
{2011,7,14}
> edate:day_of_week(Date).
"thursday"

License: GPL
Code: http://github.com/dweldon/edate
View user's profile Send private message

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum