Documentation ¶
Index ¶
- func GetDayEnd(d time.Time) time.Time
- func GetDayStart(d time.Time) time.Time
- func GetTimeAddDays(d time.Time, days int) time.Time
- func GetTimeAddHours(d time.Time, hours int) time.Time
- func GetTimeAddMinutes(d time.Time, minutes int) time.Time
- func GetTimeAddMonths(d time.Time, months int) time.Time
- func GetTimeAddSeconds(d time.Time, seconds int) time.Time
- func GetTimeAddYears(d time.Time, years int) time.Time
- func GetTimeSubDays(t1, t2 time.Time) int
- func GetTodayEnd() time.Time
- func GetTodayStart() time.Time
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDayStart ¶
GetDayStart returns specified day start time.
func GetTimeAddDays ¶
GetTimeAddDays returns specified time by add days.
func GetTimeAddHours ¶
GetTimeAddHours returns specified time by add hours.
func GetTimeAddMinutes ¶
GetTimeAddMinutes returns specified time by add minutes.
func GetTimeAddMonths ¶
GetTimeAddMonths returns specified time by add months.
func GetTimeAddSeconds ¶
GetTimeAddSeconds returns specified time by add seconds.
func GetTimeAddYears ¶
GetTimeAddYears returns specified time by add years.
func GetTimeSubDays ¶ added in v1.5.2
GetTimeSubDays returns number of days before two times 1. When t1>t2, the result is negative; 2. When t1=t2, the result is 0; 3. When t1<t2, the result is positive.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.