Temporal Expression APIs¶
All timestamp operations are valid for both scalars and columns.
temporal
¶
Classes¶
DateValue (TemporalValue, _DateComponentMixin)
¶
IntervalValue (Value)
¶
Attributes¶
days: ir.IntegerValue
property
readonly
¶
Extract the number of days from an interval.
hours: ir.IntegerValue
property
readonly
¶
Extract the number of hours from an interval.
microseconds: ir.IntegerValue
property
readonly
¶
Extract the number of microseconds from an interval.
milliseconds: ir.IntegerValue
property
readonly
¶
Extract the number of milliseconds from an interval.
minutes: ir.IntegerValue
property
readonly
¶
Extract the number of minutes from an interval.
months: ir.IntegerValue
property
readonly
¶
Extract the number of months from an interval.
nanoseconds: ir.IntegerValue
property
readonly
¶
Extract the number of nanoseconds from an interval.
quarters: ir.IntegerValue
property
readonly
¶
Extract the number of quarters from an interval.
seconds: ir.IntegerValue
property
readonly
¶
Extract the number of seconds from an interval.
weeks: ir.IntegerValue
property
readonly
¶
Extract the number of weeks from an interval.
years: ir.IntegerValue
property
readonly
¶
Extract the number of years from an interval.
Methods¶
add(self, other)
¶
Add this interval to other
.
floordiv(self, other)
¶
Floor-divide this interval by other
.
mul(self, other)
¶
Multiply this interval by other
.
negate(self)
¶
radd(self, other)
¶
Add this interval to other
.
rmul(self, other)
¶
Multiply this interval by other
.
rsub(self, other)
¶
Subtract other
from this interval.
sub(self, other)
¶
Subtract other
from this interval.
to_unit(self, target_unit)
¶
Convert this interval to units of target_unit
.