Documentation ¶
Index ¶
- func CurrentMS() int64
- func CurrentS() int64
- func CurrentTime() string
- func DateStringToTime(d string) time.Time
- func DateTimeStringToTime(dt string) time.Time
- func Get24Time(t time.Time) time.Time
- func Get24TimeUnix(t time.Time) int64
- func GetNowDateString() string
- func GetNowString() string
- func GetTimeUnix(t time.Time) int64
- func GetToday24Time() time.Time
- func GetToday24TimeUnix() int64
- func IsWeekend(t time.Time) bool
- func TimeToDate(t time.Time) string
- func TimeToDateTime(t time.Time) string
- func TodayAt(d time.Duration) time.Time
- func TodayLast() time.Time
- func TodayStringToTime(dt string) time.Time
- type Expire
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CurrentTime ¶
func CurrentTime() string
func DateStringToTime ¶
DateStringToTime 日期字符串转换成时间 ("2006-01-02" to time.Time)
func DateTimeStringToTime ¶
DateTimeStringToTime 日期+时间字符串转换成时间 ("2006-01-02 15:04:05" to time.Time)
func TimeToDate ¶
TimeToDate 时间转换成日期字符串 (time.Time to "2006-01-02")
func TimeToDateTime ¶
TimeToDateTime 时间转换成日期+时间字符串 (time.Time to "2006-01-02 15:04:05")
func TodayStringToTime ¶
TodayStringToTime 时间字符串转换成时间 ("15:04:05" to time.Time)
Types ¶
type Expire ¶ added in v0.5.3
func NowExpireWithDuration ¶ added in v0.5.3
func NowExpireWithHour ¶ added in v0.5.3
func NowExpireWithMinute ¶ added in v0.5.4
func NowExpireWithSecond ¶ added in v0.5.3
Click to show internal directories.
Click to hide internal directories.