README.md in timespan-0.5.6.1 vs README.md in timespan-0.5.7

- old
+ new

@@ -49,12 +49,14 @@ Internally Timespan uses Spanner to parse duration strings. `Spanner.parse('23 hours 12 minutes') -## Duration (ruby-duration) +## Duration (xduration) +The type `Duration` is supported via the [xduration](https://github.com/kristianmandrup/xduration) gem, which extends `ruby-duration` with additional macros, specific time unit classes and supports longer duration time periods such as weeks, months and years. + ```ruby Duration.new(100) => #<Duration: minutes=1, seconds=40, total=100> Duration.new(:hours => 5, :minutes => 70) => #<Duration: hours=6, minutes=10, total=22200> Duration.new(:weeks => 3, :days => 1).format("%w %~w and %d %~d") => "3 weeks and 1 day" @@ -87,11 +89,11 @@ ```ruby require 'duration/mongoid' class MyModel include Mongoid::Document - field :duration, type => Duration + field :duration, type => ::Duration end ``` ## Timespan i18n @@ -250,9 +252,16 @@ ``` `Account.period_between(6.days.ago, 1.day.ago)` See the `mongoid_search_spec.rb` for examples: + +## Time lord + +This gem can be used in combination with [Time lord](https://github.com/krainboltgreene/time-lord), which has a lot of functionality for time periods, conversions, calculations and outputting to strings etc. + +Some initial support for `time-lord` has been added, but not yet tested. +Please help out ;) ## Chronic duration Is used to parse duration strings if Spanner can't be handle it