cf.Data.del_calendar

Data.del_calendar(default=ValueError())[source]

Delete the calendar.

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 value of the deleted calendar.

Examples:

>>> d.set_calendar('proleptic_gregorian')
>>> d.get_calendar
'proleptic_gregorian'
>>> d.del_calendar()
>>> d.get_calendar()
ValueError: Can't get non-existent calendar
>>> print(d.get_calendar(None))
None