timex

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NextWeekday

func NextWeekday(t time.Time, weekday string, hour int) time.Time

NextWeekday calculates the timestamp of the next occurring weekday given a starting timestamp.

func ParseWeekday

func ParseWeekday(s string) (time.Weekday, error)

ParseWeekday parses a weekday given by its name. Both long names such as "Monday", "Tuesday", etc. and short names such as "Mon", "Tue" are supported. Case is ignored.

Types

This section is empty.

Jump to

Keyboard shortcuts

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