Quartz::Duration
Inherits JSON::Serializable / Comparable / Struct / Value / Object
Duration is a fixed-point time data type which encapsulates a 64-bit
binary floating-point number.
Constants
The epoch constant helps establishing the limiting multiplier of the
Duration datatype together with Scale::FACTOR.
An infinite duration with a base scale.
The infinite multiplier
The limiting multiplier of the Duration type.
The 1000^5 limit is chosen as the largest power of 1000 less than 2^53,
the point at which Float64 ceases to exactly represent all integers.
The largest finite multiplier that can be represented by a Duration.
The smallest finite multiplier that can be represented by a Duration.
Constructors
Class methods
Instance methods
The division of one duration by another is always considered a floating-point operation.
The numerator and denominator may have different precision levels and the result is a scalar with no prescribed precision.
Implements the comparison operator.
Assumes that self and other could be replaced by their associated
quantities. As a consequence, two Duration values can be considered equal
with different precision levels.
Equality — Returns true only if self and other are equivalent in both
multiplier and time precision.
Whether self fixed or unfixed. When fixed, the time precision is preserved
through operations. Otherwise, the time precision may be altered to minimize
rounding error.
By default, Duration values are unfixed, which makes it easy to express
durations using combinations of multiples of base-1000 SI units.
Produces a fixed duration value with the specified precision level.
Produces a duration value with the specified precision level.
Neither fixes or unfixes the time precision of the result.