temporal
¶
ASTx Data Types module.
Classes:
-
Date
–Date data type expression.
-
DateTime
–DateTime data type expression.
-
Temporal
–Base class for temporal data types (date, time, timestamp, datetime).
-
Time
–Time data type expression.
-
Timestamp
–Timestamp data type expression.
Date
¶
Bases: Temporal
Date data type expression.
Methods:
-
get_struct
–Return a simple structure that represents the 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/base.py
388 389 390 391 392 393 394 395 396 397 398 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
404 405 406 407 408 |
|
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 |
|
DateTime
¶
Bases: Temporal
DateTime data type expression.
Methods:
-
get_struct
–Return a simple structure that represents the 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/base.py
388 389 390 391 392 393 394 395 396 397 398 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
404 405 406 407 408 |
|
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 |
|
Temporal
¶
Bases: AnyType
Base class for temporal data types (date, time, timestamp, datetime).
Methods:
-
get_struct
–Return a simple structure that represents the 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/base.py
388 389 390 391 392 393 394 395 396 397 398 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
404 405 406 407 408 |
|
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 |
|
Time
¶
Bases: Temporal
Time data type expression.
Methods:
-
get_struct
–Return a simple structure that represents the 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/base.py
388 389 390 391 392 393 394 395 396 397 398 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
404 405 406 407 408 |
|
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 |
|
Timestamp
¶
Bases: Temporal
Timestamp data type expression.
Methods:
-
get_struct
–Return a simple structure that represents the 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/base.py
388 389 390 391 392 393 394 395 396 397 398 |
|
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Return a simple structure that represents the object.
Source code in src/astx/base.py
404 405 406 407 408 |
|
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 |
|