@@ -196,8 +196,7 @@ func (t Date) Equal(u Date) bool {
// 是否零值
func (t Date) IsZero() bool {
- tm := t.T()
- return tm.Second() == 0 && tm.Nanosecond() == 0
+ return t.T().IsZero()
}
// 获取年、月、日
@@ -202,8 +202,7 @@ func (t Datetime) Equal(u Datetime) bool {
func (t Datetime) IsZero() bool {
@@ -196,8 +196,7 @@ func (t Time) Equal(u Time) bool {
func (t Time) IsZero() bool {