temporal
¶
ASTx Data Types module.
Classes:
-
LiteralDate
–LiteralDate data type class.
-
LiteralDateTime
–LiteralDateTime data type class.
-
LiteralTime
–LiteralTime data type class.
-
LiteralTimestamp
–LiteralTimestamp data type class.
LiteralDate
¶
LiteralDate(value: str, loc: SourceLocation = NO_SOURCE_LOCATION)
Bases: Literal
LiteralDate data type class.
Methods:
-
get_struct
–Return the structure of the LiteralDate object.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/literals/temporal.py
27 28 29 30 31 32 33 34 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return the structure of the LiteralDate object.
Source code in src/astx/literals/temporal.py
40 41 42 43 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
265 266 267 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
259 260 261 262 263 |
|
LiteralDateTime
¶
LiteralDateTime(value: str, loc: SourceLocation = NO_SOURCE_LOCATION)
Bases: Literal
LiteralDateTime data type class.
Methods:
-
get_struct
–Return the structure of the LiteralDateTime object.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/literals/temporal.py
99 100 101 102 103 104 105 106 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return the structure of the LiteralDateTime object.
Source code in src/astx/literals/temporal.py
112 113 114 115 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
265 266 267 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
259 260 261 262 263 |
|
LiteralTime
¶
LiteralTime(value: str, loc: SourceLocation = NO_SOURCE_LOCATION)
Bases: Literal
LiteralTime data type class.
Methods:
-
get_struct
–Return the structure of the LiteralTime object.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/literals/temporal.py
51 52 53 54 55 56 57 58 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return the structure of the LiteralTime object.
Source code in src/astx/literals/temporal.py
64 65 66 67 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
265 266 267 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
259 260 261 262 263 |
|
LiteralTimestamp
¶
LiteralTimestamp(value: str, loc: SourceLocation = NO_SOURCE_LOCATION)
Bases: Literal
LiteralTimestamp data type class.
Methods:
-
get_struct
–Return the structure of the LiteralTimestamp object.
-
to_json
–Return an json string that represents the object.
-
to_yaml
–Return an yaml string that represents the object.
Source code in src/astx/literals/temporal.py
75 76 77 78 79 80 81 82 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return the structure of the LiteralTimestamp object.
Source code in src/astx/literals/temporal.py
88 89 90 91 |
|
to_json
¶
Return an json string that represents the object.
Source code in src/astx/base.py
265 266 267 |
|
to_yaml
¶
Return an yaml string that represents the object.
Source code in src/astx/base.py
259 260 261 262 263 |
|