ing
This commit is contained in:
parent
f547c15d95
commit
527ba1e994
|
@ -32,6 +32,11 @@ func Now() Timestamp {
|
||||||
return Timestamp(time.Now())
|
return Timestamp(time.Now())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func NowPtr() *Timestamp {
|
||||||
|
n := Now()
|
||||||
|
return &n
|
||||||
|
}
|
||||||
|
|
||||||
func Date(year int, month time.Month, day int) Timestamp {
|
func Date(year int, month time.Month, day int) Timestamp {
|
||||||
return Timestamp(time.Date(year, month, day, 0, 0, 0, 0, time.UTC))
|
return Timestamp(time.Date(year, month, day, 0, 0, 0, 0, time.UTC))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user