Time Utilities
hades.time
¶
Time steps in hades can represent anything. This package contains some helper functions for common use cases particularly with time steps as days
QuarterStartScheduler
¶
Bases: Process
adds quarter start events to be used for things occurring with a quarterly cadence. Depends on the YearStarted event being broadcast to it
Source code in hades/time/process.py
YearStartScheduler
¶
Bases: Process
adds year start events to be used by other processes for scheduling things which come with an annual cadence, has no dependencies in terms of other events apart from the built-in SimulationStarted
Source code in hades/time/process.py
YearStarted
¶
datetime_to_step(dt, epoch=EPOCH)
¶
datetime or date as days since epoch
Source code in hades/time/day_steps.py
step_to_date(step)
¶
hades.time.event
¶
hades.time.day_steps
¶
hades.time.process
¶
QuarterStartScheduler
¶
Bases: Process
adds quarter start events to be used for things occurring with a quarterly cadence. Depends on the YearStarted event being broadcast to it
Source code in hades/time/process.py
YearStartScheduler
¶
Bases: Process
adds year start events to be used by other processes for scheduling things which come with an annual cadence, has no dependencies in terms of other events apart from the built-in SimulationStarted