convert_units
Description:
public static bool convert_units (
TimeRange range,
RangeUnit unit)
Converts the range in-place between different types of units.
Ranges containing the special value NOW can not be converted as these are
only valid for NPT.
Parameters:
range |
a TimeRange
|
unit |
the unit to convert the range into
|
Returns:
true if the range could be converted
|