mirror of
https://gitee.com/dromara/carbon.git
synced 2024-12-02 04:07:36 +08:00
Remove extra parentheses
This commit is contained in:
parent
b3ed3cd99f
commit
e05181011f
@ -435,7 +435,7 @@ carbon.Parse("2020-08-05 13:14:15").DiffInSeconds(carbon.Parse("2020-08-05 13:14
|
||||
carbon.Parse("2020-08-05 13:14:15").DiffInSecondsWithAbs(carbon.Parse("2020-08-05 13:14:14")) // 1
|
||||
|
||||
// 对人类友好的可读格式时间差
|
||||
carbon.Parse("2020-08-05 13:14:15").DiffForHumans()) // just now
|
||||
carbon.Parse("2020-08-05 13:14:15").DiffForHumans() // just now
|
||||
carbon.Parse("2019-08-05 13:14:15").DiffForHumans() // 1 year ago
|
||||
carbon.Parse("2018-08-05 13:14:15").DiffForHumans() // 2 years ago
|
||||
carbon.Parse("2021-08-05 13:14:15").DiffForHumans() // 1 year from now
|
||||
|
@ -433,7 +433,7 @@ carbon.Parse("2020-08-05 13:14:15").DiffInSeconds(carbon.Parse("2020-08-05 13:14
|
||||
carbon.Parse("2020-08-05 13:14:15").DiffInSecondsWithAbs(carbon.Parse("2020-08-05 13:14:14")) // 1
|
||||
|
||||
// 人間に優しい読み取り可能なフォーマットの時間差を取得します
|
||||
carbon.Parse("2020-08-05 13:14:15").DiffForHumans()) // just now
|
||||
carbon.Parse("2020-08-05 13:14:15").DiffForHumans() // just now
|
||||
carbon.Parse("2019-08-05 13:14:15").DiffForHumans() // 1 year ago
|
||||
carbon.Parse("2018-08-05 13:14:15").DiffForHumans() // 2 years ago
|
||||
carbon.Parse("2021-08-05 13:14:15").DiffForHumans() // 1 year from now
|
||||
|
@ -433,7 +433,7 @@ carbon.Parse("2020-08-05 13:14:15").DiffInSeconds(carbon.Parse("2020-08-05 13:14
|
||||
carbon.Parse("2020-08-05 13:14:15").DiffInSecondsWithAbs(carbon.Parse("2020-08-05 13:14:14")) // 1
|
||||
|
||||
// Difference in human friendly readable format
|
||||
carbon.Parse("2020-08-05 13:14:15").DiffForHumans()) // just now
|
||||
carbon.Parse("2020-08-05 13:14:15").DiffForHumans() // just now
|
||||
carbon.Parse("2019-08-05 13:14:15").DiffForHumans() // 1 year ago
|
||||
carbon.Parse("2018-08-05 13:14:15").DiffForHumans() // 2 years ago
|
||||
carbon.Parse("2021-08-05 13:14:15").DiffForHumans() // 1 year from now
|
||||
|
Loading…
Reference in New Issue
Block a user