Skip to content

Time — formatting and timestamps

Source: framework/library/time.sh

Convert epoch to human readable

Return codes

All functions return 0 on success, 1 on failure, 2 on wrong argument count.

Time functions

time::human_readable_seconds

Converting seconds to a human readable format


time::now

Retrieving unixtime in seconds

Return time in unixtime