time#
Functions and classes for handling time
Classes
Define a single date; based on |
|
Handle time vectors for both simulations and modules. |
|
Base class for time-aware parameters, durations and rates |
|
Any number that acts like a duration |
|
Any number that acts like a rate; can be greater than 1 |
|
A probability over time (a.k.a. |
|
A container for beta (i.e. the disease transmission rate). |
|
An instantaneous rate converted to a probability; must be >=0. |
Functions
Calculate the relationship between two sets of time factors |
|
Add two dates (or integers) together |
|
Find the difference between two dates (or integers) |
|
Shortcut to ss.dur(value, units='day') |
|
Shortcut to ss.dur(value, units='year') |
|
Shortcut to ss.rate(value, units='day') |
|
Shortcut to ss.rate(value, units='year') |