timezone_extensions library
Makes package:timezone easier to use: convert a TZDateTime from one
Location to another, and read English time zone labels.
final paris = getLocation('Europe/Paris');
final newYork = getLocation('America/New_York');
paris.timeZoneGenericName; // 'Central European Time'
final takeOff = TZDateTime(paris, 2026, 8, 23, 10, 15);
takeOff.toLocation(newYork); // 04:15, the same moment
takeOff.timeZoneSpecificName; // 'Central European Summer Time'
takeOff.utcOffsetLabel; // 'UTC+02'
Initialize latest_all tzdata first. latest omits tzdb links,
including Europe/Amsterdam, Europe/Stockholm, and US/Pacific.
Convert across places with TZDateTimeAcrossLocations.toLocation.
Extensions
- LocationZoneNames on Location
-
English display name for a
Location. - TZDateTimeAcrossLocations on TZDateTime
- Relates this instant to another place: its wall clock, and its offset.
- TZDateTimeZoneNames on TZDateTime
-
English labels for a
TZDateTimeat its instant.
Constants
- cldrVersion → const String
- CLDR release used for English time-zone long names.