The TZ Version Parrot showcases loading ICU time zone data (tzdata) from various sources, then simply announces the release version (e.g. 2015d, 2019a) of the current tzdata.
If these components are not present in your build, they can be added by appending --with //examples to your fx set command. For example:
$ fx set core.x64 --with //examples --with //examples:tests $ fx build
If you do not already have one running, start a package server so the example components can be resolved from your device:
$ fx serve
The time zone data loading examples are implemented as test cases. To run one of the test components defined here, provide the package name to fx test:
C++
$ fx test tz-version-parrot-cpp
Rust
$ fx test tz-version-parrot-rust
This example showcases the following cases:
You can find the platform's tzdata .res files in ${icu_tzres_path}. The tzdata-provider component provides these files via directory capabilities.
(The value of icu_root is usually //third_party/icu.)