Permalink
Browse files

Merge branch 'master' of github.com:kristianmandrup/timespan

  • Loading branch information...
2 parents 547e66e + eee9e05 commit 680c0251e5a09f3c9b26c4306a7196cc97733a8c @kristianmandrup committed Jan 25, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 README.md
View
2 README.md
@@ -5,7 +5,7 @@ Use Timespans in Ruby :)
Will calculate time diff between two dates, then allow you to get the time difference in some time unit as a number.
```ruby
- t = Timespan.new(:start => Date.today, :duration => 3.days.ago)
+ t = Timespan.new(:start => Date.today, :duration => 3.days)
t.to_days # => 3
t.to_weeks # => 0
t.to_secs # => 259200

0 comments on commit 680c025

Please sign in to comment.