diff --git a/README.cn.md b/README.cn.md index 6f41afe..4979095 100644 --- a/README.cn.md +++ b/README.cn.md @@ -546,9 +546,9 @@ now.DiffInDuration(now).String() // 0s now.AddHour().DiffInDuration(now).String() // 1h0m0s now.SubHour().DiffInDuration(now).String() // -1h0m0s // 相差时长(绝对值) -now.DiffAbsInDuration(now) // 0s -now.AddHour().DiffAbsInDuration(carbon.Now()) // 1h0m0s -now.SubHour().DiffAbsInDuration(carbon.Now()) // 1h0m0s +now.DiffAbsInDuration(now).String() // 0s +now.AddHour().DiffAbsInDuration(now).String() // 1h0m0s +now.SubHour().DiffAbsInDuration(now).String() // 1h0m0s // 对人类友好的可读格式时间差 carbon.Parse("2020-08-05 13:14:15").DiffForHumans() // just now diff --git a/README.jp.md b/README.jp.md index df7493a..7a3f803 100644 --- a/README.jp.md +++ b/README.jp.md @@ -546,9 +546,9 @@ now.DiffInDuration(now).String() // 0s now.AddHour().DiffInDuration(now).String() // 1h0m0s now.SubHour().DiffInDuration(now).String() // -1h0m0s // 相差時間長(絶対値) -now.DiffAbsInDuration(now) // 0s -now.AddHour().DiffAbsInDuration(carbon.Now()) // 1h0m0s -now.SubHour().DiffAbsInDuration(carbon.Now()) // 1h0m0s +now.DiffAbsInDuration(now).String() // 0s +now.AddHour().DiffAbsInDuration(now).String() // 1h0m0s +now.SubHour().DiffAbsInDuration(now).String() // 1h0m0s // 人間に優しい読み取り可能なフォーマットの時間差を取得します carbon.Parse("2020-08-05 13:14:15").DiffForHumans() // just now diff --git a/README.md b/README.md index 4e23aa2..7d8d5d7 100644 --- a/README.md +++ b/README.md @@ -543,9 +543,9 @@ now.DiffInDuration(now).String() // 0s now.AddHour().DiffInDuration(now).String() // 1h0m0s now.SubHour().DiffInDuration(now).String() // -1h0m0s // Difference in duration with absolute value -now.DiffAbsInDuration(now) // 0s -now.AddHour().DiffAbsInDuration(carbon.Now()) // 1h0m0s -now.SubHour().DiffAbsInDuration(carbon.Now()) // 1h0m0s +now.DiffAbsInDuration(now).String() // 0s +now.AddHour().DiffAbsInDuration(now).String() // 1h0m0s +now.SubHour().DiffAbsInDuration(now).String() // 1h0m0s // Difference in a human-readable format carbon.Parse("2020-08-05 13:14:15").DiffForHumans() // just now