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