skillfed

airporttime

convert local time to utc time by airport or vise-versa.

airporttime v0.0.0 120.7K downloads/30d#12,014 on PyPI1
License unclear Abandoned released

What it is and what it does

airporttime is a lightweight timezone converter that maps IATA airport codes to their timezones and handles bidirectional conversion between local and UTC times. It wraps timezone data from opentraveldata and uses pytz to manage timezone-aware datetime objects, including daylight saving time adjustments.

The package is designed for scenarios where you have a naive local datetime at a specific airport and need to convert it to UTC, or vice versa. It also exposes the underlying airport metadata (name, coordinates, country, timezone offsets) as attributes on the AirportTime object. However, the package has been abandoned since its initial release in December 2018, with no updates to the underlying data or code since then.

Use it for:

  • Convert flight arrival/departure times from local airport time to UTC for scheduling or logging.
  • Look up timezone and geographic metadata for an airport given only its IATA code.
  • Handle daylight saving time transitions when working with airport-local datetime objects.
  • Build a simple timezone reference tool for travel or logistics applications using static airport data.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Converts between local time and UTC for any airport by IATA code, using timezone data from opentraveldata.

No, unless you have a specific need for a frozen snapshot of airport timezone data and can accept no maintenance. The package is abandoned, its license is unclear, and the underlying data has not been updated since 2018. For active projects, consider using a maintained timezone library (pytz or zoneinfo) combined with a current airport database, or a live travel API.

Install

airporttime on PyPI

pip

pip install airporttime

uv

uv add airporttime

poetry

poetry add airporttime

Installing airporttime

Before you install

Low install friction with only two runtime dependencies (pytz and requests). However, the package is abandoned—last release and commit were in 2018, with no activity since. Use only if you need a static snapshot of airport timezone data and can tolerate no maintenance.

License in practice

License status is unclear; the package declares no SPDX identifier or raw license text. Verify licensing before use in commercial or copyleft-sensitive contexts.

Quickstart

pip install airporttime

import airporttime
from datetime import datetime

apt = airporttime.AirportTime(iata_code='ORD')
naive_local = datetime(2019, 1, 1, 10, 30)
utc_time = apt.to_utc(naive_local)
print(utc_time)

Verify before relying

  • Whether the opentraveldata CSV source is still actively maintained and accurate for current airport timezones.
  • Whether daylight saving time handling remains correct after 2018, given the package's abandonment.
  • Actual license terms, since none are declared in the package metadata.

Package facts

License not declared (unclear)
Python support not specified
Install friction low — pure-Python wheel
Runtime dependencies 2 — pytz, requests
Maintenance abandoned — 2,803 days since the last release
Last repo commit
First released
Downloads 120,661/month — #12,014 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: airporttime-0.0.0-py3-none-any.whl

Programming Language :: Python :: 3

Tags

airport timezone conversionlocal time to utc by airportiata code timezone lookupairport time zone aware datetimeconvert airport local time utcairport timezone offset
timezone-conversionairport-dataabandoned

More Utilities packages