Documentation ¶
Index ¶
- Constants
- func DayEndTime(ti time.Time) (int64, error)
- func DayStart(ti time.Time) string
- func DayStartTime(ti time.Time) (int64, error)
- func Format(t time.Time) string
- func HumanizeDurationInt(now, before int) string
- func HumanizeDurationInt64(now, before int64) string
- func IsWeekend(t time.Time) bool
- func NowDate() string
- func Parse(timestr string) (int64, error)
- func ParseNoSecond(timestr string) (int64, error)
- func UnixMillisecond() int64
- func UnixTsFormat(ts int64) string
- func UnixTsFormatMinute(ts int64) string
Constants ¶
View Source
const ( YYYYMMDDhhmmss = "2006-01-02 15:04:05" YYYYMMDDhhmm = "2006-01-02 15:04" YYYYMMDD000000 = "2006-01-02 00:00:00" )
Variables ¶
This section is empty.
Functions ¶
func HumanizeDurationInt ¶
func HumanizeDurationInt64 ¶
func ParseNoSecond ¶
func UnixMillisecond ¶
func UnixMillisecond() int64
func UnixTsFormat ¶
func UnixTsFormatMinute ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.