fault.time

Week based measures of time: days of seven.

weekday_names
data

weekday_names = (
	'sunday',
	'monday',
	'tuesday',
	'wednesday',
	'thursday',
	'friday',
	'saturday',
)

days_in_week0
data

days_in_week = len(weekday_names)

weeks_in_fortnight
data

weeks_in_fortnight = 2

weekday_abbreviations0
data

weekday_abbreviations = (
	'sun', 'mon', 'tue', 'wed', 'thu', 'fri', 'sat',
)

weekday_name_to_number0
data

weekday_name_to_number = {
	weekday_names[i]: i
	for i in range(len(weekday_names))
}

day_of_week20%
function

day_of_week(offset, days)

Derive the canonical day of week from the given offset and days.

week_from_days10%
function

week_from_days(offset, days)

days_from_week10%
function

days_from_week(offset, weeks)

context180%
function

context(context)