Documentation
¶
Index ¶
- func Between(t, begin, end time.Time) bool
- func ChineseTimeLocation() *time.Location
- func DayEnd(t time.Time) time.Time
- func DayStart(t time.Time) time.Time
- func IsAM(t time.Time) bool
- func IsAmericaSummerTime(t time.Time) (yes bool)
- func IsPM(t time.Time) bool
- func MonthEnd(t time.Time) time.Time
- func MonthStart(t time.Time) time.Time
- func WeekEnd(yearWeek int) time.Time
- func WeekStart(yearWeek int) time.Time
- func XISOWeek(t time.Time) (year, week int)
- func YearWeeksByTime(startDate, endDate time.Time) []int
- func YearWeeksByWeek(startYearWeek, endYearWeek int) []int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChineseTimeLocation ¶
ChineseTimeLocation Return chinese time location
func IsAmericaSummerTime ¶
IsAmericaSummerTime 是否为美国夏令时间 夏令时开始于每年3月的第二个周日凌晨,人们需要将时间调早 (顺时针) 1个小时; 夏令时结束于每年11月的第一个周日凌晨,人们需要将时间调晚 (逆时针) 1个小时。
func YearWeeksByTime ¶
func YearWeeksByWeek ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.