Add time to timer

This commit is contained in:
2024-04-14 23:51:04 +02:00
parent 3928c520e8
commit 1e9b8d0fa1
6 changed files with 302 additions and 76 deletions

View File

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