honeybee_energy.simulation.daylightsaving module

EnergyPlus Daylight Saving Time Period.

class honeybee_energy.simulation.daylightsaving.DaylightSavingTime(start_date=12 Mar, end_date=05 Nov)[source]

Bases: object

EnergyPlus Daylight Saving Time Period.

Parameters
  • start_date – A ladybug Date object for the start of daylight saving time. Must be before the end date and have a leap_year property matching the end_date. Default: 12 Mar (daylight savings in the US in 2017)

  • end_date – A ladybug Date object for the end of daylight saving time. Must be after the start date and have a leap_year property matching the start_date. Default: 5 Nov (daylight savings in the US in 2017)

Properties:
  • start_date

  • end_date

ToString()[source]

Overwrite .NET ToString.

duplicate()[source]

Get a copy of this object.

classmethod from_analysis_period(analysis_period=3/12 to 11/5 between 0 and 23 @1)[source]

Initialize a DaylightSavingTime object from a ladybug AnalysisPeriod.

Parameters

analysis_period – A ladybug AnalysisPeriod object that has the start and end dates for daylight savings time. Default: 12 Mar - 5 Nov (daylight savings in the US in 2017)

classmethod from_dict(data)[source]

Create a DaylightSavingTime object from a dictionary.

Parameters

data – A DaylightSavingTime dictionary in following the format below.

{
"type": "DaylightSavingTime",
"start_date": [3, 12],
"end_date": [11, 5]
}
classmethod from_idf(idf_string)[source]

Create a DaylightSavingTime object from an EnergyPlus IDF text string.

Parameters

idf_string – A text string fully describing an EnergyPlus RunPeriodControl:DaylightSavingTime definition.

to_dict()[source]

DaylightSavingTime dictionary representation.

to_idf()[source]

Get an EnergyPlus string representation of the DaylightSavingTime.

property end_date

Get or set a ladybug Date object for the end of the period.

property start_date

Get or set a ladybug Date object for the start of the period.