Documentation
¶
Overview ¶
Package timeutil contains the functions to parse and format time.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatAge ¶
FormatAge converts a timestamp into a human-readable duration string Examples: "37s", "3m12s", "14h", "2d4h"
func FormatDeleteAfter ¶
func ParseDeleteAfter ¶
ParseDeleteAfter parses a date string in the format "2006-01-02-15-04" Returns zero time if parsing fails
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.