Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdjustForWeekend ¶
func AdjustForWeekend(now time.Time, adj WeekendAdjustment) time.Time
Types ¶
type WeekendAdjustment ¶
type WeekendAdjustment int
A WeekendAdjustment specifies whether to move before/after/keep the same date.
const ( NoChange WeekendAdjustment = iota Before After )
func (WeekendAdjustment) String ¶ added in v0.0.10
func (d WeekendAdjustment) String() string
String returns the English name of the day ("Sunday", "Monday", ...).