time

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddBusinessDays

func AddBusinessDays(startDate time.Time, daysToAdd int) time.Time

func CurrentWeekRange

func CurrentWeekRange(timeZone string) (startOfWeek, endOfWeek time.Time)

func DurationBetween

func DurationBetween(start, end time.Time) time.Duration

func EndOfDayOfWeek

func EndOfDayOfWeek(date time.Time) time.Time

func EndOfMonth

func EndOfMonth(date time.Time) time.Time

func EndOfQuarter

func EndOfQuarter(date time.Time) time.Time

func EndOfYear

func EndOfYear(date time.Time) time.Time

func GetDatesForDayOfWeek

func GetDatesForDayOfWeek(year, month int, day time.Weekday) []time.Time

func StartAndEndOfWeeksOfMonth

func StartAndEndOfWeeksOfMonth(year, month int) []struct{ Start, End time.Time }

func StartOfDayOfWeek

func StartOfDayOfWeek(date time.Time) time.Time

func StartOfMonth

func StartOfMonth(date time.Time) time.Time

func StartOfQuarter

func StartOfQuarter(date time.Time) time.Time

func StartOfYear

func StartOfYear(date time.Time) time.Time

func WeekNumberInMonth

func WeekNumberInMonth(date time.Time) int

Types

This section is empty.

Jump to

Keyboard shortcuts

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