Skip to content

Commit

Permalink
Update annotation information
Browse files Browse the repository at this point in the history
  • Loading branch information
gouguoyin committed Dec 2, 2024
1 parent eb6466d commit e9eff84
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.jp.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions comparer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down
4 changes: 2 additions & 2 deletions extremum.go
Original file line number Diff line number Diff line change
@@ -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)
}
Expand Down

0 comments on commit e9eff84

Please sign in to comment.