Skip to content

days

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

Create a days period.

  • Expression - An Expression computing the period.

Create day periods:

>>> datetime.days(7)
>>> datetime.days(Order.shipping_days)
RelationalAI Documentation
└──  Build With RelationalAI
    └──  Understand how PyRel works > Use advanced reasoning > Rules-based reasoning
        └──  Use dates and datetimes
            └──  Add or subtract time periods