datetime

package
v0.15.2 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EndOfMonth

func EndOfMonth(t time.Time) time.Time

func EndOfThisMonth

func EndOfThisMonth() time.Time

func SleepWithContext

func SleepWithContext(ctx context.Context, duration time.Duration) error

func StartOfDay

func StartOfDay(t time.Time) time.Time

func StartOfMonth

func StartOfMonth(t time.Time) time.Time

func StartOfThisMonth

func StartOfThisMonth() time.Time

func StartOfToday

func StartOfToday() time.Time

func StartOfTomorrow

func StartOfTomorrow() time.Time

Types

type DateRange

type DateRange struct {
	StartDate time.Time
	EndDate   time.Time
}

func NewDateRange

func NewDateRange(start time.Time, end time.Time) *DateRange

Jump to

Keyboard shortcuts

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