cf.Data.set_calendar

Data.set_calendar(calendar)[source]

Set the calendar.

Parameters
value: str

The new calendar.

Returns

None

Examples

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