| Name | Date | Size | #Lines | LOC | ||
|---|---|---|---|---|---|---|
| .. | - | - | ||||
| data/ | 12-May-2024 | - | 3,572 | 3,126 | ||
| tool/ | 12-May-2024 | - | 145 | 93 | ||
| LICENSE | D | 12-May-2024 | 9.9 KiB | 177 | 150 | |
| OAT.xml | D | 12-May-2024 | 1.6 KiB | 37 | 18 | |
| README.md | D | 12-May-2024 | 1.5 KiB | 41 | 25 | |
| README_zh.md | D | 12-May-2024 | 1.2 KiB | 39 | 24 | |
| bundle.json | D | 12-May-2024 | 1.4 KiB | 62 | 61 |
README.md
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
README_zh.md
1# 时区数据管理组件 2 3## 简介 4 5时区数据管理组件 提供时区数据的更新、解析、编译、部署功能。 6 7## 目录 8 9时区数据管理组件目录结构如下所示: 10 11``` 12/base/global/ 13├── timezone # 时区数据管理组件代码仓 14│ ├── data # 时区编译数据目录 15│ ├── tool # 时区数据管理工具 16│ │ ├── compile_tool # 时区数据编译工具 17│ │ └── update_tool # 时区数据更新工具 18``` 19 20## 说明 21 22以时区数据更新为例,时区数据管理组件会从IANA时区数据官网搜索当前时区数据的最新版本。若存在新的版本,则下载最新版本进行数据更新,否则不执行数据更新操作。示例如下: 23 24``` 25cd tool/update_tool // 切换到更新工具所在目录 26python3 download_iana.py // 执行数据更新脚本 27``` 28 29## 相关仓 30 31[全球化子系统](https://gitee.com/openharmony/docs/blob/master/zh-cn/readme/全球化子系统.md) 32 33**global\_timezone** 34 35[global\_i18n\_standard](https://gitee.com/openharmony/global_i18n_standard/blob/master/README_zh.md) 36 37[global\_resmgr\_standard](https://gitee.com/openharmony/global_resmgr_standard/blob/master/README_zh.md) 38 39