conversion
frequenz.client.base.conversion ¤
Helper functions to convert to/from common python types.
Functions¤
frequenz.client.base.conversion.to_datetime ¤
Convert a protobuf Timestamp to a datetime.
PARAMETER | DESCRIPTION |
---|---|
ts |
Timestamp object to convert
TYPE:
|
tz |
Timezone to use for the datetime |
RETURNS | DESCRIPTION |
---|---|
datetime
|
Timestamp converted to datetime |