fault.format

Color formatting for dates and timestamps.

Formats timestamps with respect to another point in time to illustrate the distance from the reference point.

metric
import

behind
data

behind = (
	0xff5f00,
	0xd75f00,
	0xaf5f00,
	0x870000,
	0x5f0000,
)

ahead
data

ahead = (
	0x005fff,
	0x005fd7,
	0x005faf,
	0x005f87,
	0x005f5f,
)

equivalence
data

equivalence = 0x005f00

irrelevant
data

irrelevant = 0x585858

separator
data

separator = 0xFFFFFF

f_time_palette
function

f_time_palette(delta, rate)

f_date
function

f_date(relation, subject)

f_time
function

f_time(relation, subject)

f_subsecond
function

f_subsecond(relation, timestamp, precision)

f_timestamp
function

f_timestamp(relation, timestamp)

Format with respect to the relation point in time.