Module time

Module time 

Source
Expand description

Time handling and formatting.

Structsยง

TimeFormat
How to format the time stamps.
TimeScale

Enumsยง

TimeStringFormatting
How to format the numeric part of the time string.
TimeUnit

Constantsยง

DEFAULT_TIMELINE_NAME
THIN_SPACE ๐Ÿ”’

Functionsยง

find_auto_scale ๐Ÿ”’
Heuristically find a suitable time unit for the given time.
split_and_format_number ๐Ÿ”’
Format number based on TimeStringFormatting, i.e., possibly group digits together and use correct separator for each group.
strip_trailing_zeros_and_period ๐Ÿ”’
Get rid of trailing zeros if the string contains a ., i.e., being fractional If the resulting string ends with ., remove that as well.
time_string
Format the time string taking all settings into account.
timeformat_menu
Draw the menu for selecting the time format.
timeunit_menu
Create menu for selecting preferred time unit.