Skip to content

hours

relationalai.semantics.std.datetime
hours(period: IntegerValue) -> Expression

Create an hours period.

  • period

    (IntegerValue) - The number of hours.
  • Expression - An Expression computing the period.

Create hour periods:

>>> datetime.hours(24)
>>> datetime.hours(Flight.duration_hours)