Documentation
¶
Index ¶
- func Bod(t time.Time) time.Time
- func Eod(t time.Time) time.Time
- func Format(sec int64, nsec int64, timeTemplate TimeTemplate) string
- func MillisecondToTime(ms int64) time.Time
- func Now() time.Time
- func NowCST() time.Time
- func NowCSTMicro() int64
- func NowCSTMill() int64
- func NowCSTSec() int64
- func NowMicro() int64
- func NowMill() int64
- func NowSec() int64
- func NowUTC() time.Time
- func NowUTCHour(t time.Time) int64
- func NowUTCMicro() int64
- func NowUTCMill() int64
- func NowUTCMin(t time.Time) int64
- func NowUTCSec() int64
- func SetTimeOffsetMs(offset int64)
- func UnixHour(t time.Time) int64
- func UnixMicro(t time.Time) int64
- func UnixMill(t time.Time) int64
- func UnixMin(t time.Time) int64
- func UnixSec(t time.Time) int64
- type TimeTemplate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NowUTCHour ¶
func NowUTCMicro ¶
func NowUTCMicro() int64
func NowUTCMill ¶
func NowUTCMill() int64
func SetTimeOffsetMs ¶
func SetTimeOffsetMs(offset int64)
Types ¶
type TimeTemplate ¶
type TimeTemplate string
const ( TimeTemplate1 TimeTemplate = "2006-01-02 15:04:05.000" // 常规类型 TimeTemplate2 TimeTemplate = "2006/01/02 15:04:05.000" // 其他类型 TimeTemplate3 TimeTemplate = "2006-01-02" // 其他类型 TimeTemplate4 TimeTemplate = "15:04:05" // 其他类型 )
Click to show internal directories.
Click to hide internal directories.