- class pywr.core.Timestep(period, int index, double days)
A representation of a simulation time-step.
Read-only global scenario index that this ScenarioIndex refers to.
The time-step index of the simulation.
The time-step length in days.
The day of the year (from pandas.Period.dayofyear).
A zero-based index for the day of the year. This begins at 0 and ends at 366. The 29th of February is skipped if it is not a leap year.
The day of the month.
A zero-based index for the week of the year. The last week of the year (index 51) is always slightly longer than 7 days.
The month number (1 - 12).
True if the current year is a leap year; false otherwise.
- __init__(*args, **kwargs)
Returns the number of days of the current timestep that fall in the current year
Returns the number of days of the current timestep that fall in the next year
Timestep representation as a datetime.datetime object