cf.Units.istime

Units.istime

True if the units are time units, False otherwise.

Note that reference time units return False.

Examples

>>> Units(units='days').istime
True
>>> Units(units='hours since 2100-1-1', calendar='noleap').istime
False
>>> Units(calendar='360_day').istime
False
>>> Units(units='kg').istime
False
>>> Units().istime
False

Previous topic

cf.Units.isreftime

Next topic

cf.Units.units

This Page