utils

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDate

func CreateDate(year int, month time.Month, day int) time.Time

func GetDaysInMonth

func GetDaysInMonth(t time.Time) int

Returns the number of days in the given month of the specified year

func GetMonths

func GetMonths(first time.Time) []time.Time

func GetOrdinalSuffix

func GetOrdinalSuffix(day int) string

Returns the ordinal suffix for a given day

func GetYearsBetween

func GetYearsBetween(from int, to int) []int

Types

This section is empty.

Jump to

Keyboard shortcuts

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