feat: add Timestamp,TimestampMilli,TimestampMicro, TimestampNano

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

No files matched your search

+16
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)
}