Skip to main content

infrahub_sdk.timestamp

Classes

Timestamp

Methods:

obj

obj(self) -> ZonedDateTime

to_string

to_string(self, with_z: bool = True) -> str

to_timestamp

to_timestamp(self) -> int

to_datetime

to_datetime(self) -> datetime

get_obj

get_obj(self) -> ZonedDateTime

add_delta

add_delta(self, hours: int = 0, minutes: int = 0, seconds: int = 0, microseconds: int = 0) -> Timestamp

add

add(self, years: int = 0, months: int = 0, weeks: int = 0, days: int = 0, hours: float = 0, minutes: float = 0, seconds: float = 0, milliseconds: float = 0, microseconds: float = 0, nanoseconds: int = 0, disambiguate: Literal['compatible'] = 'compatible') -> Timestamp

subtract

subtract(self, years: int = 0, months: int = 0, weeks: int = 0, days: int = 0, hours: float = 0, minutes: float = 0, seconds: float = 0, milliseconds: float = 0, microseconds: float = 0, nanoseconds: int = 0, disambiguate: Literal['compatible'] = 'compatible') -> Timestamp