Skip to content

hours

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

Create an hours period.

Parameters

  • period

    (IntegerValue) - The number of hours.

Returns

  • Expression - An Expression computing the period.

Examples

Create hour periods:

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