From: Peter Vandenabeele Date: 2012-01-14T09:50:32+09:00 Subject: Re: [ANN] relativity 0.0.1 released --00235447105c38908e04b6725ee1 Content-Type: text/plain; charset=UTF-8 On Fri, Jan 13, 2012 at 8:28 PM, Intransition wrote: > Does Chronos(https://github.com/apeiros/chronos) cover any of this? > Thanks for the pointer. I checked it out (quickly) and as far as I can see: * times, dates, ranges are all "absolute" * duration is the only "relative" class (and that seems to be a "length of time, expressed in a number of days + a number ofpicoseconds"). So, I did not find back the most important aspect of what I need, a time or a day "relative" to day, week, forthnight, etc. On top, every range can be cyclical, so there is no <=> operator. Both the "09:00 until 18:00" and the "20:00 until 06:00" range are valid (think day time job and night shift). Same for days: does Monday come before or after Friday? Before if one thinks "workweek", after if one thinks "weekend". > I have long thought that Ruby is in dire need of solid, unified and full > blown Date/Time/Calendar (and then some) library. I know of a number of > libraries that cover different aspects but nothing that brings it all > together. There's ActiveSupport, Chronos, RichUnits, Holidays, Chronic, > etc. i think Chronos was an endeavor to do this, in fact, but development > stalled. > I plan to continue just with the specific concept of a "relative" time and then we can see if it makes sense to take on a broader aspect of "Time management" (pun intended). Peter -- Peter Vandenabeele http://twitter.com/peter_v http://rails.vandenabeele.com --00235447105c38908e04b6725ee1--