Documentation ¶
Index ¶
- func NowFmtStr(fmtStr string) string
- func NowMillis() int64
- func NowNano() int64
- func NowSecond() int64
- func NowStr() string
- func TimeFmtStr(t time.Time, fmt string) string
- func TimeFromStamp(s, ns int64) time.Time
- func TimeFromStampMillis(ms int64) time.Time
- func TimeMillis(t time.Time) int64
- func TimeNano(t time.Time) int64
- func TimeSecond(t time.Time) int64
- func TimeStr(t time.Time) string
- type Time
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TimeFromStamp ¶
时间戳 参数 s 为秒 ns 为纳秒 注:最后的时间为s+ns的结果 millis := nanos / 1000000 // 毫秒
func TimeFromStampMillis ¶
func TimeMillis ¶
func TimeSecond ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.