SimpleCloudNotifier/server/db/utils.go

16 lines
158 B
Go
Raw Normal View History

2022-11-18 21:25:40 +01:00
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()
}