cf.Data.get_calendar¶
-
Data.
get_calendar
(default=ValueError())[source]¶ Return the calendar.
See also
- Parameters
- default: optional
Return the value of the default parameter if the calendar has not been set. If set to an
Exception
instance then it will be raised instead.
- Returns
The calendar.
Examples:
>>> d.set_calendar('julian') >>> d.get_calendar 'metres' >>> d.del_calendar() >>> d.get_calendar() ValueError: Can't get non-existent calendar >>> print(d.get_calendar(None)) None