Skip to content

ISO

relationalai.semantics.std.datetime

ISO format string constants for date and datetime formatting.

ISO.DATE: str

Date format: “yyyy-mm-dd”

ISO.HOURS: str

Datetime with hours: “yyyy-mm-ddTHH”

ISO.HOURS_TZ: str

Datetime with hours and timezone: “yyyy-mm-ddTHHz”

ISO.MINUTES: str

Datetime with minutes: “yyyy-mm-ddTHH:MM”

ISO.MINUTES_TZ: str

Datetime with minutes and timezone: “yyyy-mm-ddTHH:MMz”

ISO.SECONDS: str

Datetime with seconds: “yyyy-mm-ddTHH:MM:SS”

ISO.SECONDS_TZ: str

Datetime with seconds and timezone: “yyyy-mm-ddTHH:MM:SSz”

ISO.MILLIS: str

Datetime with milliseconds: “yyyy-mm-ddTHH:MM:SS.s”

ISO.MILLIS_TZ: str

Datetime with milliseconds and timezone: “yyyy-mm-ddTHH:MM:SS.sz”

RelationalAI Documentation
└──  Build With RelationalAI
    └──  Understand how PyRel works > Use advanced reasoning > Rules-based reasoning
        ├──  Work with strings
        └──  Use dates and datetimes
            └──  Parse dates and datetimes from strings