time

package
v0.0.14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2022 License: Apache-2.0 Imports: 2 Imported by: 2

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", ...).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL