From e9eff84cc8ee3395eacd59fee0ef748542b73d3c Mon Sep 17 00:00:00 2001 From: gouguoyin <245629560@qq.com> Date: Mon, 2 Dec 2024 10:28:52 +0800 Subject: [PATCH] Update annotation information --- README.cn.md | 2 +- README.jp.md | 2 +- README.md | 2 +- comparer.go | 4 ++-- extremum.go | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.cn.md b/README.cn.md index effc267e..50172017 100644 --- a/README.cn.md +++ b/README.cn.md @@ -596,7 +596,7 @@ carbon.Parse("00:00:00").IsDST() // false carbon.Parse("2023-01-01", "Australia/Brisbane").IsDST() // false carbon.Parse("2023-01-01", "Australia/Sydney").IsDST() // true -// 是否是零值时间 +// 是否是零值时间(0001-01-01 00:00:00 +0000 UTC) carbon.Parse("").IsZero() // true carbon.Parse("0").IsZero() // true carbon.Parse("0000-00-00 00:00:00").IsZero() // true diff --git a/README.jp.md b/README.jp.md index 14888eeb..9300c1ad 100644 --- a/README.jp.md +++ b/README.jp.md @@ -595,7 +595,7 @@ carbon.Parse("00:00:00").IsDST() // false carbon.Parse("2023-01-01", "Australia/Brisbane").IsDST() // false carbon.Parse("2023-01-01", "Australia/Sydney").IsDST() // true -// ゼロ値の時間かどうか +// ゼロ値の時間かどうか(0001-01-01 00:00:00 +0000 UTC) carbon.Parse("").IsZero() // true carbon.Parse("0").IsZero() // true carbon.Parse("0000-00-00 00:00:00").IsZero() // true diff --git a/README.md b/README.md index 057e1745..8c717e3a 100644 --- a/README.md +++ b/README.md @@ -591,7 +591,7 @@ carbon.Parse("00:00:00").IsDST() // false carbon.Parse("2023-01-01", "Australia/Brisbane").IsDST() // false carbon.Parse("2023-01-01", "Australia/Sydney").IsDST() // true -// Whether is zero time +// Whether is zero time(0001-01-01 00:00:00 +0000 UTC) carbon.Parse("").IsZero() // true carbon.Parse("0").IsZero() // true carbon.Parse("0000-00-00 00:00:00").IsZero() // true diff --git a/comparer.go b/comparer.go index 2467822b..1b7bbffb 100755 --- a/comparer.go +++ b/comparer.go @@ -10,8 +10,8 @@ func (c Carbon) IsDST() bool { return c.time.IsDST() } -// IsZero reports whether is zero time. -// 是否是零值时间 +// IsZero reports whether is zero time(0001-01-01 00:00:00 +0000 UTC). +// 是否是零值时间(0001-01-01 00:00:00 +0000 UTC) func (c Carbon) IsZero() bool { return c.time.IsZero() } diff --git a/extremum.go b/extremum.go index d30889ac..22a39a78 100755 --- a/extremum.go +++ b/extremum.go @@ -1,13 +1,13 @@ package carbon // MaxValue returns a Carbon instance for the greatest supported date. -// 获取 Carbon 的最大值 +// 返回 Carbon 的最大值 func MaxValue() Carbon { return NewCarbon().create(9999, 12, 31, 23, 59, 59, 999999999, UTC) } // MinValue returns a Carbon instance for the lowest supported date. -// 获取 Carbon 的最小值 +// 返回 Carbon 的最小值 func MinValue() Carbon { return NewCarbon().create(-9998, 1, 1, 0, 0, 0, 0, UTC) }