The delta function

This page contains the documentation for the delta() function.

delta(t: datetime.datetime) datetime.timedelta

The time between the given point and now.

Parameters:

t (datetime.datetime) – the time point.

Returns:

The difference between the time point t and now.

Return type:

datetime.timedelta

Deprecated since version 1.1: This will be removed from libsemigroups_pybind11 in v2. Instead, use datetime.datetime.now() - t.