class documentation

class DateScale: (source)

View In Hierarchy

A fritter.boundaries.Scale that can scale between a trunk scheduler that uses physical time (floats) and a branch scheduler that uses civil time (dates and wall-clock times).

Method down Translate time from the trunk time scale into the branch time scale.
Method shift Shift the current scale forward to incorporate pause breaks.
Method up Translate time from the branch time scale into the trunk time scale.
Class Variable _onlyPauseShift Undocumented
Class Variable _zone Undocumented
def down(self, offset: float, time: float) -> DateTime[ZoneInfo]: (source)

Translate time from the trunk time scale into the branch time scale.

def shift(self, pauseTime: DateTime[ZoneInfo] | None, currentTime: float) -> float: (source)

Shift the current scale forward to incorporate pause breaks.

def up(self, offset: float, time: DateTime[ZoneInfo]) -> float: (source)

Translate time from the branch time scale into the trunk time scale.

_onlyPauseShift: bool = (source)

Undocumented

Undocumented