• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# i18n
2
3## Introduction
4
5The timezone module provides a tool set for timezone data management which includes timezone data update, parse, compile, deploy.
6
7## Directory Structure
8
9The directory structure for the timezone module is as follows:
10
11```
12/base/global/
13├── timezone           # repository for the timezone data management
14│   ├── data          # Directory of compiled timezone data
15│   ├── tool          # TimeZone data management tool set
16│   │   ├── compile_tool              # TimeZone data compile tool
17│   │   └── update_tool          # TimeZone data update tool
18```
19
20## Constraints
21
22## Usage
23
24Provide time zone data management functions, including time zone data update, parse, compile and deploy functions. Take the time zone data update tool as an example. This tool will search the latest version of the current time zone data from the IANA time zone data official website. If there is a new version, download the latest version to update the data; Otherwise, the data update operation is not performed.
25
26```
27cd tool/update_tool  // change directory to update tool directory.
28python3 download_iana.py  // run data update script.
29```
30
31## Repositories Involved
32
33[Globalization subsystem](https://gitee.com/openharmony/docs/blob/master/en/readme/globalization.md)
34
35**global\_timezone**
36
37[global\_i18n\_standard](https://gitee.com/openharmony/global_i18n_standard/blob/master/README.md)
38
39[global\_resmgr\_standard](https://gitee.com/openharmony/global_resmgr_standard/blob/master/README.md)
40
41