pandemia.clock

Used to represent time in the model

Module Contents

Classes

Clock

Tracks time

Attributes

log

pandemia.clock.log
class pandemia.clock.Clock(tick_length_s: int, simulation_length_days: int, epoch: Union[datetime.datetime, str] = datetime.now())

Tracks time

reset() None

Reset the clock to the start

iso8601() str

Return ISO 8601 time as a string

ticks_through_week() int

Returns the number of whole ticks through the week this is

now() datetime.datetime

Return a datetime.datetime showing the clock time