Documentation ¶
Index ¶
- func AddFloat(f ...float64) float64
- func AddInt(n ...int) int
- func AddInt64(n ...int64) int64
- func FromStringToTimestamp(t string) (int64, error)
- func FromTimestampToString(timestamp int64) string
- func GetDateTimeNow() string
- func GetDaysInMonth(year int, month int) int
- func GetTimestampNow() int64
- func IsLeapYear(year int) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromStringToTimestamp ¶
FromStringToTimestamp 字符串值转为时间戳
func FromTimestampToString ¶
FromTimestampToString 时间戳转为对应时间字符串
func GetDaysInMonth ¶
GetDaysInMonth 获取某年某月多少天 year 年 month 月 return 天数,无效月份返回-1
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.