mirror of
https://github.com/duke-git/lancet.git
synced 2026-11-16 05:12:11 +08:00
feat: add Timestamp,TimestampMilli,TimestampMicro, TimestampNano
This commit is contained in:
1 parent
2a303d5e4b
commit
1c58ee23f1
4 files changed
+331
No files matched your search
@@ -394,3 +394,19 @@ func TestNowDateOrTime(t *testing.T) {
|
||||
t.Log(result)
|
||||
}
|
||||
}
|
||||
|
||||
func TestTimestamp(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
ts1 := Timestamp()
|
||||
t.Log(ts1)
|
||||
|
||||
ts2 := TimestampMilli()
|
||||
t.Log(ts2)
|
||||
|
||||
ts3 := TimestampMicro()
|
||||
t.Log(ts3)
|
||||
|
||||
ts4 := TimestampNano()
|
||||
t.Log(ts4)
|
||||
}
|
||||
Reference in new issue
Block a user