mirror of
https://github.com/openharmony/global_timezone.git
synced 2026-07-01 03:23:12 -04:00
4a1e0062f0b1aefc70c071dbaa4001136fac6b89
i18n
Introduction
The timezone module provides a tool set for timezone data management which includes timezone data update, parse, compile, deploy.
Directory Structure
The directory structure for the timezone module is as follows:
/base/global/
├── timezone # repository for the timezone data management
│ ├── data # Directory of compiled timezone data
│ ├── tool # TimeZone data management tool set
│ │ ├── compile_tool # TimeZone data compile tool
│ │ └── update_tool # TimeZone data update tool
Constraints
Usage
Provide 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.
cd tool/update_tool // change directory to update tool directory.
python3 download_iana.py // run data update script.
Repositories Involved
Globalization subsystem
global_timezone
global_i18n_standard
global_resmgr_standard
Description
TimeZone data management provides timezone data management tools| includes update| parse| compile| deploy | 时区数据管理组件提供时区数据管理工具,包括:时区数据更新、解析、编译、部署
Languages
Python
76.4%
Shell
23.6%