API reference
python:astx:astx.literals.temporal.LiteralDateTime
class LiteralDateTime
LiteralDateTime(value: str, loc: SourceLocation = NO_SOURCE_LOCATION)
Source: packages/astx/src/astx/literals/temporal.py:165
LiteralDateTime data type class.
Attributes
-
value — Stored value.; Type: str
-
type_ — Type associated with this expression.; Type: DateTime
-
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 LiteralDateTime.
-
__str__ — Return a string that represents the object.
-
get_struct — Return the structure of the LiteralDateTime object.