pywr.core.Timestep¶
- 
class 
pywr.core.Timestep(period, int index, double days)¶ A representation of a simulation time-step.
- Attributes
 - periodpandas.Period
 Read-only global scenario index that this ScenarioIndex refers to.
- indexint
 The time-step index of the simulation.
- daysint
 The time-step length in days.
- dayofyearint
 The day of the year (from pandas.Period.dayofyear).
- dayofyear_indexint
 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.
- dayint
 The day of the month.
- week_indexint
 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.
- monthint
 The month number (1 - 12).
- yearint
 The year.
- is_leap_yearbool
 True if the current year is a leap year; false otherwise.
- 
__init__(*args, **kwargs)¶ Initialize self. See help(type(self)) for accurate signature.
Methods
__init__(*args, **kwargs)Initialize self.
Attributes
datetimeTimestep representation as a datetime.datetime object
daydayofyeardayofyear_indexdaysindexis_leap_yearmonthperiodweek_indexyear