pg_timezone library

for PostgreSQL

Classes

Location
A Location maps time instants to the zone in use at that time. Typically, the Location represents the collection of time offsets in use in a geographical area, such as CEST and CET for central Europe.
PgLocationDatabase
PgLocationDatabase provides interface to find Locations by their name.
TimeZone
A TimeZone represents a single time zone such as CEST or CET.
TZDateTime
TimeZone aware DateTime.
TzInstant
A TzInstant represents a timezone and an instant in time.

Constants

maxTime → const int
Maximum value for time instants.
minTime → const int
Minimum value for time instants.

Properties

timeZoneDatabase PgLocationDatabase
Global TimeZone database
no setter

Functions

getLocation(String pgTimeZone) Location
Find Location by its name.