This commit is contained in:
2024-04-15 22:13:07 +02:00
parent 1e9b8d0fa1
commit 6ceda23af4
2 changed files with 53 additions and 54 deletions

View File

@ -1,12 +1,12 @@
package model
type Timer struct {
Id UUID
Name string
StartTime Time
EndTime Time
}
func (self Timer) IsFinished() bool {
return MakeTimeNow().Compare(self.EndTime) >= 0
}
package model
type Timer struct {
Id UUID
Name string
StartTime Time
EndTime Time
}
func (self Timer) IsFinished() bool {
return MakeTimeNow().Compare(self.EndTime) >= 0
}