sampo.schemas.time#
Overview#
Classes#
- class sampo.schemas.time.Time(value: int = 0)#
Bases:
sampo.schemas.serializable.AutoJSONSerializable[Time]Class for describing all basic operations for working with time in framework
- Parameters:
value – initial time value
- value: int#
- static inf()#
Return time, that is obviously longer
- __truediv__(other: 'Time' or int) float#
- __lt__(other)#
Return self<value.
- __le__(other)#
Return self<=value.
- __gt__(other)#
Return self>value.
- __ge__(other)#
Return self>=value.
- __eq__(other)#
Return self==value.
- __bool__()#
- __int__() int#
- __str__() str#
Return str(self).
- __repr__() str#
Return repr(self).
- __unicode__() str#
- __hash__() int#
Return hash(self).
- set_time(value: int)#
- is_inf() bool#
Attributes#
- sampo.schemas.time.TIME_INF = 2000000000#