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 ¶
FirstDayOfISOWeek 通过ISOWeek翻转得到周的日期时间 @see https://blog.csdn.net/pingD/article/details/60964306
func GetMondayOfWeek ¶
GetMondayOfWeek 获取本周周一的日期
func GetNextWeekMonday ¶
GetNextWeekMonday 获取上周周日日期
func GetTimeRemainSeconds ¶
GetTimeRemainSeconds 获取两个时间的秒数差
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.