airporttime
convert local time to utc time by airport or vise-versa.
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 airporttimeuv
uv add airporttimepoetry
poetry add airporttimeInstalling 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
Tags
More Utilities packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
charset-normalizerDetects and normalizes text encoding from…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
PygmentsPygments is a syntax highlighter that colorizes…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
airportsdataProvides a static database of airport location,…
permissive · top 5,000 on PyPI
local-crontabConverts crontab expressions from a local…
permissive · top 15,000 on PyPI
tzlocalReturns the IANA timezone name and tzinfo…
permissive · top 1,000 on PyPI
pytzpytz brings the Olson timezone database into…
permissive · top 100 on PyPI
SQLAlchemy-UtcProvides a SQLAlchemy DateTime type that…
permissive · top 15,000 on PyPI
timesTimes converts between universal (UTC) time and…
permissive · top 15,000 on PyPI
FlightRadarAPIUnofficial Python SDK for querying…
permissive · top 15,000 on PyPI
tzfpyConverts geographic coordinates…
permissive · top 5,000 on PyPI
tzwhereLooks up the IANA timezone name for a given…
permissive · top 15,000 on PyPI
DateTimeProvides a DateTime data type for working with…
unclear · top 5,000 on PyPI