# miscservices_time **Repository Path**: openharmony/miscservices_time ## Basic Information - **Project Name**: miscservices_time - **Description**: Timing and time module | 时间和定时组件 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 3 - **Created**: 2022-07-29 - **Last Updated**: 2024-11-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 时间组件 - [简介](#section11660541593) - [目录](#section161941989596) - [说明](#section38521239153117) - [js接口说明](#section11908203714422) - [js接口使用说明](#section9938411124317) - [相关仓](#section1371113476307) ## 简介 时间组件提供管理系统时间时区和定时的能力。 **图 1** 子系统架构图  ## 目录 ``` /base/time/time_service ├── etc # 组件包含的进程的配置文件 ├── figures # 构架图 ├── interfaces # 组件对外提供的接口代码 │ └── innerkits # 服务间接口 │ └── kits # 对应用提供的接口 ├── profile # 组件包含的系统服务的配置文件 └── services # 时间服务实现 ``` ## 说明 ### js接口说明 **表 1** js组件systemTime开放的主要方法
TIMER_TYPE_REALTIME: 设置为系统启动时间定时器,否则为walltime定时器; TIMER_TYPE_WAKEUP: 设置为唤醒定时器,否则为非唤醒; const TIMER_TYPE_EXACT: 设置为精准定时器,否则为非精准定时器; const TIMER_TYPE_IDLE: 设置为IDLE模式定时器,否则为非IDLE模式定时器(暂不支持) |
||