v0.0.590 more rfctime equal fixes for chris
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 2m34s

This commit is contained in:
2025-07-15 14:14:22 +02:00
parent 8ea9b3f79f
commit a29aec8fb5
9 changed files with 44 additions and 68 deletions

View File

@@ -136,11 +136,12 @@ func (t UnixNanoTime) Before(u AnyTime) bool {
return t.Time().Before(tt(u))
}
func (t *UnixNanoTime) Equal(u AnyTime) bool {
if t == nil && u == nil {
return true
}
if t == nil || u == nil {
func (t UnixNanoTime) Equal(u UnixNanoTime) bool {
return t.Time().Equal(u.Time())
}
func (t UnixNanoTime) EqualAny(u AnyTime) bool {
if u == nil {
return false
}
return t.Time().Equal(tt(u))