astx.literals.temporal

astx.literals.temporal

Source: packages/astx/src/astx/literals/temporal.py

title: ASTx Data Types module.

Classes

LiteralDate(Literal)

title: LiteralDate data type class.
attributes:
  value:
    type: str
  type_:
    type: Date
  loc:
    type: SourceLocation

Methods

get_struct(self, simplified: bool=False) -> ReprStruct
title: Return the structure of the LiteralDate object.
parameters:
  simplified:
    type: bool
returns:
  type: ReprStruct

LiteralTime(Literal)

title: LiteralTime data type class.
attributes:
  value:
    type: str
  type_:
    type: Time
  loc:
    type: SourceLocation

Methods

get_struct(self, simplified: bool=False) -> ReprStruct
title: Return the structure of the LiteralTime object.
parameters:
  simplified:
    type: bool
returns:
  type: ReprStruct

LiteralTimestamp(Literal)

title: LiteralTimestamp data type class.
attributes:
  value:
    type: str
  type_:
    type: Timestamp
  loc:
    type: SourceLocation

Methods

get_struct(self, simplified: bool=False) -> ReprStruct
title: Return the structure of the LiteralTimestamp object.
parameters:
  simplified:
    type: bool
returns:
  type: ReprStruct

LiteralDateTime(Literal)

title: LiteralDateTime data type class.
attributes:
  value:
    type: str
  type_:
    type: DateTime
  loc:
    type: SourceLocation

Methods

get_struct(self, simplified: bool=False) -> ReprStruct
title: Return the structure of the LiteralDateTime object.
parameters:
  simplified:
    type: bool
returns:
  type: ReprStruct