cf.TimeDuration.isint

TimeDuration.isint

True if the time duration is a whole number.

New in version 1.0.

Examples:

>>> cf.TimeDuration(2, 'hours').isint
True
>>> cf.TimeDuration(2.0, 'hours').isint
True
>>> cf.TimeDuration(2.5, 'hours').isint
False