API reference
python:astx:astx.literals.LiteralTime
class LiteralTime
LiteralTime(value: str, loc: SourceLocation = NO_SOURCE_LOCATION)
Source: packages/astx/src/astx/literals/temporal.py:71
Declared as: python:astx:astx.literals.temporal.LiteralTime
LiteralTime data type class.
Attributes
-
value — Stored value.; Type: str
-
type_ — Type associated with this expression.; Type: Time
-
loc — Source coordinates attached to this node.; Type: SourceLocation
-
kind — Type: ASTKind
-
comment — Type: str
-
parent — Type: Optional[ASTNodes]
-
ref — Type: str
-
nbytes — Type: int
-
name — Type: str
-
_tmp_id — Type: int
Methods
-
__init__ — Initialize LiteralTime.
-
__str__ — Return a string that represents the object.
-
get_struct — Return the structure of the LiteralTime object.