This commit is contained in:
crusader 2018-05-11 11:35:11 +09:00
parent f547c15d95
commit 527ba1e994

View File

@ -32,6 +32,11 @@ func Now() Timestamp {
return Timestamp(time.Now())
}
func NowPtr() *Timestamp {
n := Now()
return &n
}
func Date(year int, month time.Month, day int) Timestamp {
return Timestamp(time.Date(year, month, day, 0, 0, 0, 0, time.UTC))
}