From f68ae7c5ea865c11bded3e497dc66f31e2a1e152 Mon Sep 17 00:00:00 2001 From: Tyler Brinkley Date: Fri, 3 Mar 2017 08:43:14 -0600 Subject: [PATCH] Update readme.md --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 11934e9df..1028a5fc2 100644 --- a/readme.md +++ b/readme.md @@ -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.