timefmt

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse added in v0.1.4

func Parse(raw string) time.Time

Parse parses an RFC3339 / RFC3339Nano timestamp string, returning the zero time.Time on empty input or any parse error.

func Relative

func Relative(t, now time.Time) string

Relative formats t relative to now using compact units. Falls back to an absolute YYYY-MM-DD date for ages of 7 days or more.

Types

This section is empty.

Jump to

Keyboard shortcuts

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