feat: add IsLeapYear

This commit is contained in:
dudaodong committed 2023-04-28 14:42:25 +08:00
1 parent 219e31d929
commit 945c59896b
5 files changed
+263 -161

No files matched your search

+12
View File
@@ -321,3 +321,15 @@ func ExampleNewUnixNow() {
// // Output:
// // 2006-01-02T23:04:05+08:00
// }
func ExampleIsLeapYear() {
result1 := IsLeapYear(2000)
result2 := IsLeapYear(2001)
fmt.Println(result1)
fmt.Println(result2)
// Output:
// true
// false
}