Time
- class pyarts.arts.Time(*args, **kwargs)
Represents a time stamp
Workspace methods that require Time
Overview
Method
Read variable from file
Method
Saves variable to file
Static Method
Create variable from file
Attribute
float
Time from Unix startAttribute
datetime.datetime
The timeOperator
Allows self + n
Operator
Return self==value.
Operator
Return self>=value.
Operator
Return self>value.
Operator
Return hash(self).
Operator
Return self<=value.
Operator
Return self<value.
Operator
Return self!=value.
Operator
Allows n + self
Operator
Allows n - self
Constructors
- __init__(self) None
- __init__(self, arg: pyarts.arts.Time) None
- __init__(self, arg: datetime.datetime, /) None
- __init__(self, arg: float, /) None
- __init__(self, arg: str, /) None
Overloaded function.
__init__(self) -> None
__init__(self, arg: pyarts.arts.Time) -> None
__init__(self, arg: datetime.datetime, /) -> None
From
datetime.datetime
__init__(self, arg: float, /) -> None
From
float
seconds from Unix time start__init__(self, arg: str, /) -> None
From
str
of form “YYYY-MM-DD hh:mm:ss”
Methods
- readxml(self, file: str) None
Read variable from file
- Parameters:
file (str) – A file that can be read
- On Error:
Throws RuntimeError for any failure to read
- savexml(self, file: str, type: str = 'ascii', clobber: bool = True) None
Saves variable to file
- Parameters:
- On Error:
Throws RuntimeError for any failure to save
Static Methods
- fromxml(file: str) pyarts.arts.Time
Create variable from file
- Parameters:
file (str) – A file that can be read
- On Error:
Throws RuntimeError for any failure to read
Attributes
- time
datetime.datetime
The time
Operators
- __add__(self, n: float) pyarts.arts.Time
Allows self + n
- __eq__(value, /)
Return self==value.
- __ge__(value, /)
Return self>=value.
- __gt__(value, /)
Return self>value.
- __hash__()
Return hash(self).
- __le__(value, /)
Return self<=value.
- __lt__(value, /)
Return self<value.
- __ne__(value, /)
Return self!=value.
- __radd__(self, n: float) pyarts.arts.Time
Allows n + self
- __rsub__(self, n: float) pyarts.arts.Time
Allows n - self