times

package
v0.0.0-test-multiarch Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NextWeekday

func NextWeekday(t time.Time, test func(wd time.Weekday) bool) time.Time

NextWeekday returns a time.Time at local time t but on the next weekday where test returns true. If test never returns true then a zero time will be returned.

func StartOfDay

func StartOfDay(t time.Time) time.Time

StartOfDay returns t with zero hour, min, sec, and nsec components.

Types

This section is empty.

Jump to

Keyboard shortcuts

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