Documentation
¶
Overview ¶
Based on Carcon development 2006-01-02 15:04:05
Index ¶
- func GetNowDateInt20060815() int32
- func GetNowTime() string
- func GetNowTimeInt150405() int32
- func GetNowTimeString() string
- func GetNowTimestampInt64() int64
- func GetTimeSubDate(value string, n int64) string
- func GetTimeSubDateTime(value string, n int64) string
- func HourAndMinuteAndSecondLater(beginTime string, hms string) int64
- func HourAndMinuteAndSecondLaterString(beginTime string, hms string) string
- func HourAndMinuteAndSecondToSecond(t string) int64
- func HowLongFromNow(value string) int64
- func IsYesterday(value string) bool
- func SecondToHourAndMinuteAndSecond(value int64) string
- func TimeStampToStr(timestamp int64) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTimeSubDate ¶ added in v1.0.8
*获得多少天前、后日期 返回 20060102 n 为负数 多少天后 n 为整数 多少天前
func GetTimeSubDateTime ¶ added in v1.0.7
获得多少天后的时间 n 为负数 多少天后 n 为整数 多少天前 2006-01-02 15:04:05
func HourAndMinuteAndSecondLater ¶
15小时45分钟32秒 后的时间 参数 beginTime 2020-08-04 14:14:15 返回格式 时间戳 秒
func HourAndMinuteAndSecondLaterString ¶
5小时45分钟32秒 后的时间 参数 beginTime 2006-01-02 15:04:05 返回格式 2006-01-02 20:49:37
func HourAndMinuteAndSecondToSecond ¶
参数15:04:05 HH:MM:SS 返回秒数
func HowLongFromNow ¶
时间差 当前时间 - 参数时间 相差多少秒 参数的格式 2020-08-04 14:14:15
func SecondToHourAndMinuteAndSecond ¶
value second 秒数 return second changeto 15:45:32 15小时45分钟32秒
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.