An offline, compiled IANA time zone database for Delphi and FreePascal applications.
TZDB is an offline, in-process compiled database for IANA's Time Zone Database, designed for Delphi and FreePascal. It provides reliable time zone conversion and calculation capabilities without requiring external services or runtime dependencies, solving the problem of accurate time zone handling in Pascal applications.
Delphi and FreePascal developers who need to handle time zones accurately in their applications, especially those requiring offline functionality or avoiding external dependencies.
Developers choose TZDB for its simplicity, small footprint, and comprehensive API that includes Windows time zone alias support, making it a robust, self-contained alternative to manual time zone implementations or online services.
Delphi/FPC Time Zone Database
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Provides accurate time zone conversions without network dependencies, ensuring functionality in disconnected environments, as highlighted in the offline operation feature.
Single-file implementation with a pre-compiled database makes it easy to add to projects without external dependencies, reducing setup complexity.
Seamlessly converts between Windows time zone names and IANA identifiers using CLDR data, simplifying integration with Windows-based systems.
Includes methods like GetLocalTimeType to check for ambiguous and invalid times during daylight saving transitions, as demonstrated in the common examples.
The database is updated with a 1-2 week delay after IANA releases, and manual updates require specific tools like the Free Pascal compiler and update-compile.sh script.
Methods may throw EUnknownTimeZoneYear exceptions for dates outside the covered year range, requiring additional error handling in applications.
Restricted to Delphi XE+ and FreePascal 3+, limiting its use in multi-language or non-Pascal projects and ecosystems.