cfunits.Units.isreftime

Units.isreftime

True if the units are reference time units, false otherwise.

Note that time units (such as 'days') are not reference time units.

Examples

>>> Units('days since 2000-12-1 03:00').isreftime
True
>>> Units('hours since 2100-1-1', calendar='noleap').isreftime
True
>>> Units(calendar='360_day').isreftime
True
>>> Units('days').isreftime
False
>>> Units('kg').isreftime
False
>>> Units().isreftime
False