TimeRange#

class gordias.util.time_string.TimeRange(start: datetime, end: datetime, climatological: bool)#

Simple time range class.

Note

For details on the interpretation of climatological time axis, refer to CF Conventions 1.7, Section 7.4

Parameters:
  • start (datetime.datetime) – First time point (usually day) included in time range.

  • end (datetime.datetime) – Last time point (usually day) included in time range.

  • climatological (bool) – True if the range is climatological, False if it is consecutive.

start#

First time point (usually day) included in time range.

Type:

datetime.datetime

end#

Last time point (usually day) included in time range.

Type:

datetime.datetime

climatological#

True if the range is climatological, False if it is consecutive.

Type:

bool

Methods

TimeRange.count(value, /)

Return number of occurrences of value.

TimeRange.index(value[, start, stop])

Return first index of value.