README.md in timespan-0.2.6 vs README.md in timespan-0.2.7
- old
+ new
@@ -10,9 +10,12 @@
t.to_weeks # => 0
t.to_secs # => 259200
t.to_hours = 10800
t = Timespan.new("2 days") # from today
+ t = Timespan.new(2.days) # from today
+ t = Timespan.new(200) # 200 secs from today
+ t = Timespan.new(duration: 2.days) # specific use of :duration option
t = Timespan.new("3 hrs").from(2.days.from_now)
t = Timespan.new(:from => Date.today, :to => "6 weeks from now")