Documentation ¶
Index ¶
- func AddDay(t time.Time, day int64) time.Time
- func AddHour(t time.Time, hour int64) time.Time
- func AddMinute(t time.Time, minute int64) time.Time
- func FormatStrToTime(str, format string) time.Time
- func FormatTimeToStr(t time.Time, format string) string
- func GetNightTimestamp() int64
- func GetNowDate() string
- func GetNowDateTime() string
- func GetNowTime() string
- func GetZeroHourTimestamp() int64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatStrToTime ¶
FormatStrToTime convert string to time
func FormatTimeToStr ¶
FormatTimeToStr convert time to string
func GetNightTimestamp ¶
func GetNightTimestamp() int64
GetNightTimestamp return timestamp of zero hour (timestamp of 23:59)
func GetNowDateTime ¶
func GetNowDateTime() string
GetNowDateTime return format yyyy-mm-dd hh-mm-ss of current datetime
func GetZeroHourTimestamp ¶
func GetZeroHourTimestamp() int64
GetZeroHourTimestamp return timestamp of zero hour (timestamp of 00:00)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.