Documentation ¶
Index ¶
- Constants
- func FormatDalay(ts time.Time) string
- func FormatUnix(unixTime interface{}, format string) string
- func ParseLong(s string) (tDst time.Time)
- func ParseShort(s string) (tDst time.Time)
- func ParseUTC(utc string, format string) (local time.Time, err error)
- func SleepHour()
- func SleepRandMilli(max int, seed int64)
- func SleepRandSecond(max int, seed int64)
- func SleepSecond(sleep int)
- func WeekdayEn2Cn(s string) string
Constants ¶
View Source
const ( FormatDatetime = "2006-01-02 15:04:05" FormatDatetimeCompact = "20060102150405" FormatDay = "2006-01-02" FormatDatetCompact = "20060102" FormatTime = "15:04:05" FormatUTC = "2006-01-02T15:04:05Z" FormatUTC1 = "2006-01-02T15:04:05" FormatUTC2 = "2006-01-02T15:04Z" FormatISO8601 = "2006-01-02T15:04:05.999-07:00" )
Variables ¶
This section is empty.
Functions ¶
func FormatDalay ¶
func ParseShort ¶
func SleepRandMilli ¶
func SleepRandSecond ¶
func SleepSecond ¶
func SleepSecond(sleep int)
func WeekdayEn2Cn ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.