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]
- MpasRelativeDeltais a subclass of- dateutil.relativedeltafor 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.datetimeobjects or other- MpasRelativeDelta(but currently not- datetime.date,- datetime.timedeltaor 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]
 - Methods - __init__([dt1, dt2, years, months, days, ...])- normalized()- Return a version of this object represented entirely using integer values for the relative attributes. - Attributes - weeks