class documentation

class DateTimeDriver: (source)

View In Hierarchy

Driver based on ZoneInfo-aware datetimes.

Method now Implementation of TimeDriver.now
Method reschedule Implementation of TimeDriver.reschedule
Method unschedule Implementation of TimeDriver.unschedule
Instance Variable driver the TimeDriver that this DateTimeDriver is layered on top of, one which represents time as a POSIX timestamp as a float.
Instance Variable zone the default timezone of this DateTimeDriver, the one which will be used for results from now(). Note that reschedule(...) will still take inputs in any zone; this is just the default zone for outputs.
def now(self) -> DateTime[ZoneInfo]: (source)

Implementation of TimeDriver.now

def reschedule(self, newTime: DateTime[ZoneInfo], work: Callable[[], None]): (source)

Implementation of TimeDriver.reschedule

def unschedule(self): (source)

Implementation of TimeDriver.unschedule

the TimeDriver that this DateTimeDriver is layered on top of, one which represents time as a POSIX timestamp as a float.

the default timezone of this DateTimeDriver, the one which will be used for results from now(). Note that reschedule(...) will still take inputs in any zone; this is just the default zone for outputs.