dlt.common.pendulum
to_pendulum_tz
def to_pendulum_tz(
tz: Optional[tzinfo]) -> Optional[Union[Timezone, FixedTimezone]]
Convert a tzinfo to a pendulum Timezone/FixedTimezone
create_dt
def create_dt(year: SupportsIndex,
month: SupportsIndex,
day: SupportsIndex,
hour: SupportsIndex = 0,
minute: SupportsIndex = 0,
second: SupportsIndex = 0,
microsecond: SupportsIndex = 0,
tz: tzinfo = None,
fold: int = 1) -> pendulum.DateTime
Creates a new DateTime instance from a specific date and time.
ensure_pendulum_dt
def ensure_pendulum_dt(dt: datetime) -> pendulum.DateTime
Convert a stdlib datetime to pendulum DateTime preserving timezone.