tree: cdc3b2c89efda24d89d82b83345db10581909fe4 [path history] [tgz]
  1. meta/
  2. test/
  3. BUILD.gn
  4. main.cc
  5. newer_revision.txt
  6. README.md
examples/intl/tz_version_parrot/README.md

Time Zone Version Parrot

The TZ Version Parrot simply announces the release version (e.g. 2015d, 2019a) of the ICU time zone data that it loaded.

Instructions

  • Display the version of time zone from the icudtl.dat monolithic file:

    fx shell "run fuchsia-pkg://fuchsia.com/tz_version_parrot#meta/tz_version_parrot.cmx"
    

    Sample output:

    Squawk! TZ version (from  icudtl.dat) is:
    2019a
    
  • Display the version of time zone from time zone .res files, if available:

    fx shell "run fuchsia-pkg://fuchsia.com/tz_version_parrot#meta/tz_version_parrot_with_tzdata.cmx"
    

Config data

In order for tz_version_parrot_with_tzdata.cmx, which attempts to load .res files, to work, the product being built must include those resource files using a icu_tzdata_config_data GN rule that places them in the expected location (see kTzdataDir in main.cc).

The actual .res files live in //third_party/icu/tzres.

Testing

Run

fx test tz_version_parrot_test