mirror of
https://github.com/openharmony/time_time_cangjie_wrapper.git
synced 2026-07-01 21:24:01 -04:00
merge master into master
fix readme
Created-by: abc_qgy
Commit-by: abc_qgy
Merged-by: openharmony_ci
Description: ### 一、内容说明(相关的Issue)
### 二、建议测试周期和提测地址
建议测试完成时间:xxxx.xx.xx
投产上线时间:xxxx.xx.xx
提测地址:CI环境/压测环境
测试账号:
### 三、变更内容
* 3.1 关联PR列表
* 3.2 数据库和部署说明
1. 常规更新
2. 重启unicorn
3. 重启sidekiq
4. 迁移任务:是否有迁移任务,没有写 "无"
5. rake脚本:`bundle exec xxx RAILS_ENV = production`;没有写 "无"
* 3.4 其他技术优化内容(做了什么,变更了什么)
- 重构了 xxxx 代码
- xxxx 算法优化
* 3.5 废弃通知(什么字段、方法弃用?)
* 3.6 后向不兼容变更(是否有无法向后兼容的变更?)
### 四、研发自测点(自测哪些?冒烟用例全部自测?)
自测测试结论:
### 五、测试关注点(需要提醒QA重点关注的、可能会忽略的地方)
检查点:
| 需求名称 | 是否影响xx公共模块 | 是否需要xx功能 | 需求升级是否依赖其他子产品 |
|------|------------|----------|---------------|
| xxx | 否 | 需要 | 不需要 |
| | | | |
接口测试:
性能测试:
并发测试:
其他:
See merge request: openharmony-sig/time_time_cangjie_wrapper!22
This commit is contained in:
+6
-10
@@ -2,29 +2,25 @@
|
||||
|
||||
## 简介
|
||||
|
||||
时间时区仓颉封装是 OpenHarmony 上面向开发者提供使用仓颉语言进行应用开发时的时间时区相关能力。时间时区子系统为 OpenHarmony 系统提供了管理系统时间时区和定时的能力。
|
||||
|
||||
当前时间时区仓颉封装支持standard设备,只提供获取时间时区的能力。
|
||||
时间时区仓颉封装是 OpenHarmony 上面向开发者提供使用仓颉语言进行应用开发时的时间时区相关能力,为 OpenHarmony 系统提供了管理系统时间时区和定时的能力,且仅支持standard设备。
|
||||
|
||||
## 系统架构
|
||||
|
||||
**图 1** 时间时区仓颉架构图
|
||||
**图 1** 时间时区仓颉封装架构图
|
||||
|
||||

|
||||
|
||||
如架构图所示:
|
||||
|
||||
接口层:
|
||||
|
||||
- 时间时区部件API:提供系统时间和系统时区功能。开发者可以获取系统时间及系统时区。
|
||||
- 时间时区功能接口:提供系统时间和系统时区功能。开发者可以获取系统时间及系统时区。
|
||||
|
||||
框架层:
|
||||
|
||||
- 时间时区部件封装:该封装层是对获取系统时间及系统时区能力进行仓颉封装实现。
|
||||
- 时间时区功能封装:该封装层是对获取系统时间及系统时区能力进行仓颉封装实现。
|
||||
|
||||
架构图中的依赖部件引入说明:
|
||||
|
||||
- time_service:负责提供时间时区基础功能,封装C语言接口提供给仓颉进行互操作。
|
||||
- time_service:负责提供时间时区基础功能。
|
||||
- cangjie_ark_interop:负责提供仓颉注解类定义,用于对API进行标注,以及提供抛向用户的BusinessException异常类定义。
|
||||
- hiviewdfx_cangjie_wrapper:负责提供日志接口,用于在关键路径处打印日志。
|
||||
|
||||
@@ -47,7 +43,7 @@ base/time/time_cangjie_wrapper
|
||||
- 获取自系统启动以来经过的时间
|
||||
- 获取系统时区
|
||||
|
||||
时间时区相关API请参见[时间时区API参考](https://gitcode.com/openharmony-sig/arkcompiler_cangjie_ark_interop/blob/master/doc/API_Reference/source_zh_cn/apis/BasicServicesKit/cj-apis-system_date_time.md)。
|
||||
时间时区相关API请参见[时间时区API参考](https://gitcode.com/openharmony-sig/arkcompiler_cangjie_ark_interop/blob/master/doc/API_Reference/source_zh_cn/apis/BasicServicesKit/cj-apis-system_date_time.md),相关指南请参见[时间时区指南](https://gitcode.com/openharmony-sig/arkcompiler_cangjie_ark_interop/blob/master/doc/Dev_Guide/source_zh_cn/system_date_time/cj-system_data_time.md) 。
|
||||
|
||||
## 约束
|
||||
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 58 KiB After Width: | Height: | Size: 66 KiB |
Reference in New Issue
Block a user