mirror of
https://gitee.com/dromara/carbon.git
synced 2024-11-30 03:07:36 +08:00
Remove Print Info
This commit is contained in:
parent
5c5c69e51f
commit
17330c3b29
File diff suppressed because it is too large
Load Diff
@ -14,7 +14,7 @@ import (
|
||||
|
||||
// Version current version
|
||||
// 当前版本号
|
||||
const Version = "2.2.11"
|
||||
const Version = "2.2.12"
|
||||
|
||||
// timezone constants
|
||||
// 时区常量
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user