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:189
LiteralDateTime data type class.
Attributes
-
value — Type: str
-
type_ — Type: DateTime
-
loc — Type: SourceLocation
Methods
-
__init__ — Initialize LiteralDateTime.
-
__str__ — Return a string that represents the object.
-
get_struct — Return the structure of the LiteralDateTime object.