A Ruby class for describing and interacting with timeframes.
timeframe for data science at Brighter Planet and in production at
Originally proposed to us by the awesome programmers at fingertips
Based on ISO 8601
As documented by wikipedia, time intervals are like:
- Start and end, such as
- Start and duration, such as
- Duration and end, such as
- Duration only, such as
P1Y2M10DT2H30M, with additional context information [not supported]
or more simply
<start>/<end> <start>/<duration> <duration>/<end> <duration> [not supported]
Currently the end result is precise to 1 day, so these are the same:
This may change in the future.
Thanks to @artemk for https://github.com/rossmeissl/timeframe/pull/5
Copyright (c) 2012 Andy Rossmeissl, Seamus Abshere