mpas_analysis.shared.timekeeping.MpasRelativeDelta.MpasRelativeDelta

class mpas_analysis.shared.timekeeping.MpasRelativeDelta.MpasRelativeDelta(dt1=None, dt2=None, years=0, months=0, days=0, hours=0, minutes=0, seconds=0, calendar='gregorian')[source]

MpasRelativeDelta is a subclass of dateutil.relativedelta for relative time intervals with different MPAS calendars.

Only relative intervals (years, months, etc.) are supported and not the absolute date specifications (year, month, etc.). Addition/subtraction of datetime.datetime objects or other MpasRelativeDelta (but currently not datetime.date, datetime.timedelta or other related objects) is supported.

__init__(self, dt1=None, dt2=None, years=0, months=0, days=0, hours=0, minutes=0, seconds=0, calendar='gregorian')[source]

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__(self[, dt1, dt2, years, months, …])

Initialize self.

normalized(self)

Return a version of this object represented entirely using integer values for the relative attributes.

Attributes

weeks