added fixture scheduling

This commit is contained in:
2026-02-21 14:19:46 +11:00
parent 9e3355deb6
commit 971960d0cb
13 changed files with 1703 additions and 18 deletions

View File

@@ -48,3 +48,23 @@ func (t *TimeField) Optional() *TimeField {
}
return t
}
func (t *TimeField) Before(limit time.Time) *TimeField {
if !t.Value.Before(limit) {
t.getter.AddCheck(newFailedCheck(
"Date/Time invalid",
fmt.Sprintf("%s must be before %s", t.Key, limit),
))
}
return t
}
func (t *TimeField) After(limit time.Time) *TimeField {
if !t.Value.After(limit) {
t.getter.AddCheck(newFailedCheck(
"Date/Time invalid",
fmt.Sprintf("%s must be after %s", t.Key, limit),
))
}
return t
}