Discover Packages
github.com/getstackit/stackit
internal
timeutil
package
Version:
v0.30.1
Opens a new window with list of versions in this module.
Published: Oct 30, 2026
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package timeutil provides utilities for time formatting and manipulation.
FormatTimeAgo formats a timestamp as a relative time string
Sleep blocks for d or until ctx is done, whichever comes first. Use it
inside a polling loop in place of time.Sleep so cancellation is not delayed by
up to a full poll interval.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.