Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFutureTimestamp ¶
GetFutureTimestamp 获取未来时间戳, 单位为小时 1726766060。 Args: hours int 当前时间的未来/过去小时的数量。 Return: int 时间戳。 e.g.: Args 2, Returns 1726766060。
func GetNowTime ¶
func GetNowTime() string
GetNowTime 获取当前时间 2024-09-29 16:42:19 Return: string 当前时间。 e.g.: Returns 2024-09-29 16:42:19。
func GetNowTimestamp ¶
func GetNowTimestamp() string
GetNowTimestamp 获取当前时间戳 1726736060 Return: string 当前时间戳。 e.g.: Returns 1726736060。
func GetTimestampByTime ¶
GetTimestampByTime 传入时间字符串,如,获取时间戳 Args: timeStr string 时间字符串。 Return: int 时间戳, error 错误。 e.g.: Args 2006-01-02 15:04:05, Returns 1726736060,nil。
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.