Documentation
¶
Index ¶
- Variables
- func DateToUnix(date string) int64
- func GetNowDate() string
- func GetNowTime() string
- func GetNowTimeUnix() int64
- func GetNowTimeUnixMilli() int64
- func GetNowTimeUnixNano() int64
- func GetNowTimeUnsigned() string
- func GetTimeUnix(year, month, day, hour, min, sec int) int64
- func GetTimeUnixByDate(date string) int64
- func GetTimeUnixMilli(year, month, day, hour, min, sec int) int64
- func GetTimeUnixMilliByDate(date string) int64
- func GetTimeUnixNano(year, month, day, hour, min, sec int) int64
- func GetTimeUnixNanoByDate(date string) int64
- func JsonlTimeToString(t jsonl.Time) string
- func StringToJsonlTime(str string) jsonl.Time
- func StringToTime(str string) time.Time
- func TimeToString(t time.Time) string
- func UnixToDate(timestamp int64) string
- func UnixToDateMilli(timestamp int64) string
- func UnixToDateNano(timestamp int64) string
Constants ¶
This section is empty.
Variables ¶
View Source
var DateFormat = define.DateFormat
View Source
var TimeFormat = define.TimeFormat
View Source
var TimeFormatStr = define.TimeFormatStr
Functions ¶
func GetTimeUnixMilli ¶
GetTimeUnixMilli 获取指定时间戳(毫秒)
func GetTimeUnixMilliByDate ¶
GetTimeUnixMilliByDate 获取指定时间戳(毫秒)
func GetTimeUnixNano ¶
GetTimeUnixNano 获取指定时间戳(纳秒)
func GetTimeUnixNanoByDate ¶
GetTimeUnixNanoByDate 获取指定时间戳(纳秒)
func JsonlTimeToString ¶
func StringToJsonlTime ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.