timex

package
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlignTime

func AlignTime(t time.Time, timeUnit time.Duration, roundUp bool) time.Time

AlignTime aligns time to specified time unit. When roundUp is true, rounds up; when false, rounds down

func AlignTimeToWindow

func AlignTimeToWindow(t time.Time, size time.Duration) time.Time

AlignTimeToWindow aligns time to window start time

Types

This section is empty.

Jump to

Keyboard shortcuts

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