Re: ANN simple-time

2014-03-24 Thread Zoka
Hi Matt, Looks very good - the little speed up you can make is to use :const attribute for conversion constants such as milliseconds-per-XXX , so there is no var lookup overhead during runtime. -- You received this message because you are subscribed to the Google Groups Clojure group. To

Re: ANN simple-time

2014-03-24 Thread Matt Bossenbroek
Thanks for the tip - I was not aware of that! Thanks, Matt On Monday, March 24, 2014 at 4:48 AM, Zoka wrote: Hi Matt, Looks very good - the little speed up you can make is to use :const attribute for conversion constants such as milliseconds-per-XXX , so there is no var lookup

Re: ANN simple-time

2014-03-24 Thread ian.tegebo
I found a stackoverflow question discussing :const metadata, but I can't seem to find any official clojure docs about it. Are you aware of any? Well, to be fair, I see it mentioned on the cheatsheet but I can't find any further explanation: http://clojure.org/cheatsheet On Monday, March 24,

Re: ANN simple-time

2014-03-24 Thread guns
On Mon 24 Mar 2014 at 10:24:11AM -0700, ian.tegebo wrote: I found a stackoverflow question discussing :const metadata, but I can't seem to find any official clojure docs about it. Are you aware of any? Well, to be fair, I see it mentioned on the cheatsheet but I can't find any further

Re: ANN simple-time

2014-03-24 Thread ian.tegebo
On Monday, March 24, 2014 10:54:53 AM UTC-7, guns wrote: On Mon 24 Mar 2014 at 10:24:11AM -0700, ian.tegebo wrote: I found a stackoverflow question discussing :const metadata, but I can't seem to find any official clojure docs about it. Are you aware of any? Well, to be fair, I see

Re: ANN simple-time

2014-03-23 Thread Matt Bossenbroek
That's correct - I defined timespan to be independent of any specific datetime, but there's add-years, add-months, add-days, etc if you do need to move relative to a specific date. I do plan to add timezones as the next feature, just haven't gotten around to it yet. For my use cases so far I

Re: ANN simple-time

2014-03-22 Thread dm3
Hey, this looks really simple and nice. So, to map Joda concepts to simple-time - a *timespan* is a standard Period (1 day is always 24 hours) and a *datetime* doesn't have a timezone, so more akin to LocalDateTime, right? There's also https://github.com/dm3/clojure.joda-time, in case you

Re: ANN simple-time

2014-03-22 Thread Andrey Antukh
Very nice! Thanks! 2014-03-22 10:35 GMT+01:00 dm3 deadmo...@gmail.com: Hey, this looks really simple and nice. So, to map Joda concepts to simple-time - a *timespan* is a standard Period (1 day is always 24 hours) and a *datetime* doesn't have a timezone, so more akin to LocalDateTime,

ANN simple-time

2014-03-20 Thread Matt Bossenbroek
It is my pleasure to announce simple-time to the world: https://github.com/mbossenbroek/simple-time simple-time is a dead simple datetime timespan library for Clojure. It's an opinionated alternative for clj-time that takes a more functional twist on the object-heavy Joda time library. Full

Re: ANN simple-time

2014-03-20 Thread James Trunk
Hi Matt, Thanks for your work on this library, it looks truly excellent. The next time I need to deal with dates or times I'll be reaching straight for simple-time. Cheers, James On Thursday, March 20, 2014 7:15:55 PM UTC+1, Matt Bossenbroek wrote: It is my pleasure to announce simple-time