date

package
v0.1.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CountWorkingDays

func CountWorkingDays(from, end time.Time) int

func EndOfDay

func EndOfDay(date time.Time) time.Time

func EndOfMonth

func EndOfMonth(date time.Time) time.Time

func EndOfWeek

func EndOfWeek(date time.Time) time.Time

func EndOfYear

func EndOfYear(date time.Time) time.Time

func LastMonth

func LastMonth(date time.Time) time.Time

func LastWeek

func LastWeek(date time.Time) time.Time

func ParseISODate

func ParseISODate(dt string) (time.Time, error)

ParseISODate ISO date format to utc

func StartOfDay

func StartOfDay(date time.Time) time.Time

func StartOfMonth

func StartOfMonth(date time.Time) time.Time

func StartOfWeek

func StartOfWeek(date time.Time) time.Time

func StartOfYear

func StartOfYear(date time.Time) time.Time

func SubtractAYear

func SubtractAYear(date time.Time) time.Time

func SubtractDays

func SubtractDays(date time.Time, d int) time.Time

func SubtractMonths

func SubtractMonths(date time.Time, m int) time.Time

Types

This section is empty.

Jump to

Keyboard shortcuts

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