system_timezone

Creator: coderz1093

Last updated:

0 purchases

system_timezone Image
system_timezone Images

Languages

Categories

Add to Cart

Description:

system timezone

system_timezone #
The Motive #
I wanted to explore creating an FFI (Foreign Function Interface) plugin and also wanted to create a synchronous API to get the system timezone that supports all platforms.
Example #
Get current timezone
final currentTimezone = SystemTimezone.getTimezoneName();
copied to clipboard
Get list of known timezones
final listOfTimezones = SystemTimezone.getKnownTimezoneNames();
copied to clipboard
OS Constraints #

Android: minSdkVersion 19
iOS: 2.0+
Linux: Systemd v239 and above
Windows: Windows 10 Version 1903 and above
macOS: 10.0+
Web: Browser Compatibility for Intl.DateTimeFormat.resolvedOptions and Browser Compatibility for Intl.supportedValuesOf

Credits #

The source code of flutter_timezone and iana-time-zone packages was instrumental in the development of this package.
UTM was invaluable for testing this package on Windows and Linux environments.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.