Remove Print Info

This commit is contained in:
Peleus 2023-11-02 10:27:12 +08:00
parent 5c5c69e51f
commit 17330c3b29
3 changed files with 643 additions and 647 deletions

File diff suppressed because it is too large Load Diff

View File

@ -14,7 +14,7 @@ import (
// Version current version
// 当前版本号
const Version = "2.2.11"
const Version = "2.2.12"
// timezone constants
// 时区常量

View File

@ -1,14 +1,13 @@
package carbon
import (
"fmt"
"time"
)
// IsZero reports whether is zero time.
// 是否是零值时间
func (c Carbon) IsZero() bool {
return c.time.IsZero()
return c.ToStdTime().IsZero()
}
// IsValid reports whether is valid time.
@ -30,8 +29,6 @@ func (c Carbon) IsInvalid() bool {
// 是否是当前时间
func (c Carbon) IsNow() bool {
if c.IsInvalid() {
fmt.Println("bbb")
return false
}
return c.Timestamp() == c.Now().Timestamp()