1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-09 15:12:26 +08:00

feat: add Timestamp,TimestampMilli,TimestampMicro, TimestampNano

This commit is contained in:
dudaodong
2023-07-26 17:28:15 +08:00
parent 2a303d5e4b
commit 1c58ee23f1
4 changed files with 331 additions and 0 deletions

View File

@@ -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)
}