Documentation
¶
Index ¶
- func GetCurrentTime() time.Time
- func GetCurrentTimeStr() string
- func GetCurrentTimeUnix() int64
- func GetCurrentTimeUnixNano() int64
- func GetDateBeforeToday(days int) time.Time
- func GetDateStrBeforeToday(days int) string
- func GetDatetimeBefore(datetime time.Time, seconds int) time.Time
- func GetDatetimeBeforeNow(seconds int) time.Time
- func GetDatetimeDiff(begin time.Time, end time.Time) int64
- func GetDatetimeDiffNano(begin time.Time, end time.Time) int64
- func GetDatetimeDuration(s string) time.Time
- func GetDatetimeFromStr(datetimeStr string) time.Time
- func GetDatetimeStrBeforeNow(seconds int) string
- func GetStrFromDatetime(datetime time.Time) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCurrentTime ¶
func GetCurrentTimeStr ¶
func GetCurrentTimeStr() string
func GetCurrentTimeUnix ¶
func GetCurrentTimeUnix() int64
func GetCurrentTimeUnixNano ¶
func GetCurrentTimeUnixNano() int64
func GetDateBeforeToday ¶
func GetDateStrBeforeToday ¶
func GetDatetimeBeforeNow ¶
func GetDatetimeDuration ¶
Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
func GetDatetimeFromStr ¶
func GetDatetimeStrBeforeNow ¶
func GetStrFromDatetime ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.