SimpleCloudNotifier/server/db/utils.go
2022-11-18 21:25:40 +01:00

16 lines
158 B
Go

package db
import "time"
func bool2DB(b bool) int {
if b {
return 1
} else {
return 0
}
}
func time2DB(t time.Time) int64 {
return t.UnixMilli()
}