Header menu logo bristlecone

DayLengthCache Type

A cache that may be used in model computation where day lengths
 are continually accessed for the same dates over and over again. Stashes
 each calculated day length per latitude/longitude and time.

Constructors

Constructor Description

DayLengthCache(latitude, longitude, timeZone)

Full Usage: DayLengthCache(latitude, longitude, timeZone)

Parameters:
Returns: DayLengthCache
latitude : float<MeasureProduct<latitude, MeasureOne>>
longitude : float<MeasureProduct<longitude, MeasureOne>>
timeZone : string
Returns: DayLengthCache

Instance members

Instance member Description

this.GetLight

Full Usage: this.GetLight

Parameters:
Returns: DayLength

Daylight hours

date : DateTime

Returns: DayLength

Type something to start searching.