Documentation ¶
Index ¶
Constants ¶
View Source
const ( DatetimeLayout = "2006-01-02 15:04:05" ZeroDateStr = "0001-01-01 00:00:00" // zero date )
Variables ¶
This section is empty.
Functions ¶
func FormatDate ¶
FormatDate 使用 "2006-01-02 15:04:05" 格式化日期
如果日期为 zero date(0001-01-01 00:00:00),返回 ""
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.