server.web.utils ================ .. py:module:: server.web.utils .. autoapi-nested-parse:: Utility modules for the Jobmon server. Submodules ---------- .. toctree:: :maxdepth: 1 /autoapi/server/web/utils/json_compat/index /autoapi/server/web/utils/time_sql/index Functions --------- .. autoapisummary:: server.web.utils.add_time_expr server.web.utils.subtract_time_expr Package Contents ---------------- .. py:function:: add_time_expr(delta: float, dialect: str) -> Any Create a SQL expression to add time (in seconds) to the current timestamp. :param delta: Number of seconds to add :param dialect: The database dialect (mysql, sqlite) :returns: A SQLAlchemy expression appropriate for the current dialect :raises ServerError: If the dialect is not supported .. py:function:: subtract_time_expr(delta: float, dialect: str) -> Any Create a SQL expression to subtract time (in seconds) from the current timestamp. :param delta: Number of seconds to subtract :param dialect: The database dialect (mysql, sqlite) :returns: A SQLAlchemy expression appropriate for the current dialect :raises ServerError: If the dialect is not supported