2025-08-14 15:40:23 +08:00
2025-08-13 20:08:11 +08:00
2025-08-13 17:44:08 +08:00
2025-08-13 15:03:16 +08:00
2025-08-14 15:40:23 +08:00
2025-08-13 20:08:11 +08:00

Time and Time Zone Subsystem

Introduction

The time and time zone subsystem provides OpenHarmony with the capability of managing the system time, time zone, and timing.

  • Time and time zone management

    Manages the system time and time zone in a unified manner, including setting and obtaining the system time, date, and time zone, and obtaining the system startup time.

  • Timing management

    Provides the system timer capability, including creating, starting, stopping, and destroying timers. There are three types of timers: system startup timer, system time timer, and wakeup timer.

System Architecture

Figure 1 Architecture of the time and time zone subsystem

Directory Structure

The source code of the time and time zone subsystem is stored in the /base/time directory.

The directory structure is as follows:

base/time/time_cangjie_wrapper
├── ohos             # Cangjie Time and Time Zone Subsystem code
├── figures          # architecture pictures

Repositories Involved

time_cangjie_wrapper

time_service

S
Description
时间时区子系统仓颉封装层
Readme 3.7 MiB
Languages
Python 52.7%
TypeScript 47.3%