pyfivetran.utils

Module Contents

Functions

deserialize_timestamp

Deserialize a timestamp in the format: 2019-08-24T14:15:22Z

serialize_timezone

Serialize a timezone to the offset integer representation.

Data

logger

API

pyfivetran.utils.logger = 'getLogger(...)'
pyfivetran.utils.deserialize_timestamp(dt_str: str) datetime.datetime[source]

Deserialize a timestamp in the format: 2019-08-24T14:15:22Z

Parameters:

dt_str – The timestamp to deserialize

Returns:

The deserialized timestamp

pyfivetran.utils.serialize_timezone(tz: str | datetime.tzinfo) int[source]

Serialize a timezone to the offset integer representation.

Fivetran expects: 11, 10 … ,0 , … +11, +12

Parameters:

tz – The timezone to serialize

Returns:

The offset integer representation