Skip to content

datetime

relationalai.semantics.std

Date and time manipulation functions.

This module provides comprehensive date and datetime operations including:

  • Date construction, parsing, and formatting
  • DateTime construction, parsing, and formatting
  • Date and time component extraction (year, month, day, hour, minute, second)
  • Date and time arithmetic (add, subtract)
  • Date and time ranges
  • Time period constructors (days, hours, minutes, seconds, etc.)
  • ISO format constants for standardized formatting

Attributes exposed by this module.

Functions exposed by this module.

Classes exposed by this module.

RelationalAI Documentation
└──  Build With RelationalAI
    └──  Understand how PyRel works > Use advanced reasoning > Rules-based reasoning
        └──  Use dates and datetimes
            └──  Extract date and time components