From: Chuck Remes Date: 2012-01-13T03:34:39+09:00 Subject: Re: [ANN] relativity 0.0.1 released On Jan 11, 2012, at 2:48 PM, Peter Vandenabeele wrote: > relativity - time relative to a day, a week, a month, a quarter, a year > > https://github.com/petervandenabeele/relativity > > I could not find a pure Ruby implementation I liked of > * a time, relative to a day (e.g. 09:30:20 on a random day) > * a time, relative to a week (e.g. 09:30 on Mondays) > * a time range, relative to a day (09:30 .. 18:00 on a random day) > * a time range, relative to a week (Monday 13:00 .. 18:30 in a random week) > > So, I started making 'relativity'. The first class partially implemented is > RelativeTime. Critique and reviews are very welcome. Testing is based > on rspec, design methodology tries to be red-green-refactor TDD. > > If you know of a full solution in pure Ruby, then I am still interested ... > (I checked facets, rubygems for patterns with time, date, ..., googled > for relevant terms, but failed to find a solution that seemed maintained > and complete). But maybe I did not search well enough? This looks useful to me. I have created a few helpers that were similar in concept but nowhere near as nice as what you did with the library here. I am not aware of any other gems or libs that duplicate this task, so I think you are the first! cr