timezone_finder 0.2.0
timezone_finder: ^0.2.0 copied to clipboard
Makes package:timezone easier to use — turn a place on Earth into the Location it sits in, convert a TZDateTime from one Location to another, and read English time zone labels.
0.2.0 #
Breaking. 0.1.0 names have no @Deprecated aliases.
browser.dartis web-only, likepackage:timezone/browser.dart. Importing it off web is now a compile error (0.1.0 failed at runtime). Cross-platform apps should conditionally import it on the same branch that loads the.bin. VM, CLI, server, and Flutter mobile/desktop keep usingtimezone_finder.dart(boundaries are embedded).- Cross-location APIs now sit beside
package:timezonenames:String.toLocation()→String.findLocation()TZDateTime.convertTo(location)→TZDateTime.toLocation(location)(toUtc/toLocalanalogue)TZDateTime.utcOffsetDifference(location)→TZDateTime.offsetDifference(location)
- English labels drop "metazone" from public names (that word is CLDR lookup jargon):
Location.metazoneName→Location.timeZoneGenericNameTZDateTime.metazoneName→TZDateTime.timeZoneLongName(besidetimeZoneName)MetazoneLocation→LocationZoneNamesMetazoneTZDateTime→TZDateTimeZoneNames- Removed
TZDateTime.metazoneAbbreviation— usetimeZoneName(CEST) orutcOffsetLabel(UTC±…)
TZDateTime.utcOffset→TZDateTime.utcOffsetLabel— display string (UTC+04:30), nottimeZoneOffset(Duration).ianaDatabaseVersion→boundaryDataVersion— timezone-boundary-builder release, independent of the tzdb version behindpackage:timezone.
0.1.0 #
- Initial release.