Documentation ¶
Index ¶
- func BirthdayToAge(birthday string) (age int)
- func FirstDayOfISOWeek(year int, week int, timezone *time.Location) time.Time
- func GetMondayOfWeek(t time.Time, fmtStr string) (dayStr string)
- func GetNextWeekMonday(t time.Time, fmtStr string) (day string, err error)
- func GetTimeRemainSeconds(startTimeStr, endTimeStr string) int
- func GetWeekDay(date string) string
- func GetZeroTime(t time.Time) time.Time
- func NowTime(format ...string) string
- func TodayRemainSecond() time.Duration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FirstDayOfISOWeek ¶
通过ISOWeek翻转得到周的日期时间 @see https://blog.csdn.net/pingD/article/details/60964306
func GetNextWeekMonday ¶
获取上周周日日期
func GetTimeRemainSeconds ¶
获取两个时间的秒数差
func NowTime ¶
NowTime 当前时间 @author Cloud|2021-12-13 09:40:41 @param format ...string ... @return string ...
func TodayRemainSecond ¶
TodayRemainSecond 获取当天剩余的秒数 @author Cloud|2021-12-12 12:49:41 @return time.Duration ...
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.