abstract_api.timezone.timezone_conversion_response module#

class abstract_api.timezone.timezone_conversion_response.Timezone(datetime: str, timezone_name: str, timezone_location: str, timezone_abbreviation: str, gmt_offset: int, is_dst: bool, requested_location: str, latitude: float, longitude: float)[source]#

Bases: object

Timezone entity in timezone conversion response.

Used to represent base and target location timezones.

property datetime: str | None#

The current date and time.

property gmt_offset: int | None#

Timezone’s offset from Greenwich Mean Time (GMT).

Read more: https://greenwichmeantime.com/what-is-gmt

property is_dst: bool | None#

Whether the location is currently in Daylight Savings Time (DST).

Read more: https://wikipedia.org/wiki/Daylight_saving_time

property latitude: float | None#

Decimal of the longitude found for the requested_location.

property longitude: float | None#

Decimal of the longitude found for the requested_location.

property requested_location: str | None#

The location from the request.

property timezone_abbreviation: str | None#

Timezone’s abbreviation, also from IANA Time Zone Database.

property timezone_location: str | None#

Timezone’s location.

property timezone_name: str | None#

Timezone’s name from IANA Time Zone Database.

Read more: https://www.iana.org/time-zones

class abstract_api.timezone.timezone_conversion_response.TimezoneConversionResponse(response: Response)[source]#

Bases: NestedEntitiesMixin, JSONResponse

Timezone conversion service response.

property base_location: Timezone#

The time and timezone details of base location from request.

property target_location: Timezone#

The time and timezone details of target location from request.