Returns True if and only if numeric values in one unit are convertible to numeric values in the other unit.
Parameters : |
|
---|---|
Returns : |
|
Examples
>>> u = Units(units='m')
>>> v = Units(units='km')
>>> w = Units(units='s')
>>> u.equivalent(v)
True
>>> u.equivalent(w)
False
>>> u = Units(units='days since 2000-1-1')
>>> v = Units(units='days since 2000-1-1', calendar='366_day')
>>> w = Units(units='seconds since 1978-3-12')
>>> u.equivalent(v)
False
>>> u.equivalent(w)
True