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 ofdateutil.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 otherMpasRelativeDelta
(but currently notdatetime.date
,datetime.timedelta
or other related objects) is supported.-
__init__
(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__
([dt1, dt2, years, months, days, …])Initialize self.
normalized
()Return a version of this object represented entirely using integer values for the relative attributes.
Attributes
weeks
-