Skip to main content

Module display

Module display 

Source
Expand description

Display formatting helpers for truncation and timestamps.

Functionsยง

format_timestamp
Format a Unix timestamp as "2024-01-15 10:30 UTC".
format_timestamp_detailed
Format a Unix timestamp as "Jan 15, 2024 10:30:00" (detailed, no timezone label).
truncate_str
Truncate a string to prefix leading chars + ... + suffix trailing chars.