View source on GitHub |
A location in time with picosecond accuracy.
cirq.Timestamp(
*, picos: Union[int, float] = 0, nanos: Union[int, float] = 0
) -> None
Supports affine operations against Duration.
Args | |
---|---|
picos
|
How many picoseconds away from time zero? |
nanos
|
How many nanoseconds away from time zero? |
Methods
raw_picos
raw_picos() -> float
The timestamp's location in picoseconds from arbitrary time zero.
__add__
__add__(
other
) -> 'Timestamp'
__eq__
__eq__(
other
)
Return self==value.
__ge__
__ge__(
other
)
Return self>=value.
__gt__
__gt__(
other
)
Return self>value.
__le__
__le__(
other
)
Return self<=value.
__lt__
__lt__(
other
)
Return self<value.
__ne__
__ne__(
other
)
Return self!=value.
__radd__
__radd__(
other
) -> 'Timestamp'
__sub__
__sub__(
other
)