Skip to content

Commit

Permalink
Merge pull request #619 from TylerBrinkley/patch-1
Browse files Browse the repository at this point in the history
Update readme.md
  • Loading branch information
Oren Novotny authored Mar 5, 2017
2 parents e7456eb + f68ae7c commit 8fdea6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ DateTime.UtcNow.AddHours(-2).Humanize() => "2 hours ago"
DateTime.UtcNow.AddHours(30).Humanize() => "tomorrow"
DateTime.UtcNow.AddHours(2).Humanize() => "2 hours from now"

DateTimeOffset.AddHours(1).Humanize() => "an hour from now"
DateTimeOffset.UtcNow.AddHours(1).Humanize() => "an hour from now"
```

Humanizer supports both local and UTC dates as well as dates with offset (`DateTimeOffset`). You could also provide the date you want the input date to be compared against. If null, it will use the current date as comparison base.
Expand Down

0 comments on commit 8fdea6c

Please sign in to comment.