utils

package
v1.5.4 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MonthNames = []string{"JAN", "FEB", "MAR", "APR", "MAY", "JUN", "JUL", "AUG", "SEP", "OCT", "NOV", "DEC"}
	WeekNames  = []string{"MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN"}
)

Functions

func LastOfMonth

func LastOfMonth(t time.Time) int

func MonthNameToNumber

func MonthNameToNumber(s string) int

func NearestWeekday

func NearestWeekday(t time.Time) int

func NthDayOfWeek

func NthDayOfWeek(t time.Time, w time.Weekday, nth int) int

func WeekNameToNumber

func WeekNameToNumber(s string) int

Types

This section is empty.

Jump to

Keyboard shortcuts

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