output

package
v0.1.0-alpha.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatTimeLocal

func FormatTimeLocal(t *time.Time) string

FormatTimeLocal formats a time in the local timezone for display

func FormatTimeLocalValue

func FormatTimeLocalValue(t time.Time) string

FormatTimeLocalValue formats a time value (not pointer) in the local timezone for display

func ParseTimeFuture

func ParseTimeFuture(input string) (time.Time, error)

ParseTimeFuture parses a time string that can be RFC3339 or relative time in the future (e.g., "30d" means 30 days from now)

func ParseTimePast

func ParseTimePast(input string) (time.Time, error)

ParseTimePast parses a time string that can be RFC3339 or relative time in the past (e.g., "24h" means 24 hours ago)

Types

This section is empty.

Jump to

Keyboard shortcuts

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