Documentation
¶
Index ¶
- func AddMonthAndAdjust(startDate time.Time, noMonths int) time.Time
- func AddWorkingDays(startDate time.Time, daysToAdd int) time.Time
- func AdjustToNextWorkingday(date time.Time) time.Time
- func EndOfDay(t time.Time) time.Time
- func FormatAudit(in time.Time) string
- func FormatCalendar(in time.Time) string
- func FormatDMY(in time.Time) string
- func FormatHuman(t time.Time) string
- func FormatHumanFromString(in string) (time.Time, error)
- func FormatYMD(in time.Time) string
- func IsAfterOrEqualTo(t1, t2 time.Time) bool
- func IsBeforeOrEqualTo(t1, t2 time.Time) bool
- func IsWorkingDay(t time.Time) bool
- func StartOfDay(t time.Time) time.Time
- type DateFormat
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddMonthAndAdjust ¶ added in v1.2.72
AddMonthAndAdjust adds 1 calendar month and adjusts to the next weekday if needed
func AddWorkingDays ¶ added in v1.2.72
AddWorkingDays adds n working days (excluding weekends) to a given date
func AdjustToNextWorkingday ¶ added in v1.2.72
AdjustToNextWorkingday moves the date forward to the next weekday if it's a weekend
func FormatAudit ¶
func FormatCalendar ¶
func FormatHuman ¶
func IsAfterOrEqualTo ¶
func IsBeforeOrEqualTo ¶
func IsWorkingDay ¶ added in v1.2.72
Types ¶
Click to show internal directories.
Click to hide internal directories.