Documentation ¶
Index ¶
- func DayAgoOrAfter(n int) (start, end time.Time)
- func DayFirst(d time.Time) time.Time
- func DayLast(d time.Time) time.Time
- func DayOfAgoOrAfter(d time.Time, n int) (start, end time.Time)
- func Format(d time.Time, spec ...string) string
- func Month() (time.Time, time.Time)
- func MonthByNum(n int) (time.Time, time.Time)
- func MonthFirst(t time.Time) time.Time
- func MonthFirstByNum(n int) time.Time
- func MonthLast(t time.Time) time.Time
- func MonthLastByNum(n int) time.Time
- func ParseSpec(spec string) string
- func Str2Time(date string, spec ...string) time.Time
- func TimeOfDay(d time.Time) (start, end time.Time)
- func Today() (start, end time.Time)
- func Week() (time.Time, time.Time)
- func WeekFirst(t time.Time) time.Time
- func Weekend(t time.Time) time.Time
- func Yesterday() (start, end time.Time)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DayAgoOrAfter ¶
DayAgoOrAfter 以当天为准 获取 几天前或者几天后的 开始和结束时间
func DayOfAgoOrAfter ¶
DayOfAgoOrAfter 以某天为准 获取 几天前或者几天后的 开始和结束时间
func MonthByNum ¶
MonthByNum 获取月份的开始和结束时间 e.g. 想要获取3月份的开始和结束时间 MonthByNumber(3)
func MonthFirstByNum ¶
func MonthLastByNum ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.