Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDatetimeRange ¶
基于 当前时间 给定 日期时间周期格式 返回日期时间范围 的字符串
datetime_type: 1周前, 2周前, 1个月前, 2个月前, 3个月前, 6个月前, 1年前 例子: GetDatetimeRange("1周前") => "2021-08-02", "2021-08-09", nil
func GetNowStringSimple ¶ added in v0.0.7
func GetNowStringSimple() string
获取 当前时间 简单格式 20060102-150405
func GetNowStringWithDuration ¶
基于 当前时间 给定 时间间隔 duration,返回时间字符串
func ParseDatetime ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.