文件最后提交记录最后更新时间
IssueNo: #I73TBH:Game2048,ArkTSClock,CustomShare ohpm适配 Description: Game2048,ArkTSClock,CustomShare ohpm migration. Sig: SIG_applications_app_samples Feature or Bugfix: Feature Binary Source: No Signed-off-by: zwx1094577 <zhongyuyan1@huawei.com> 2 年前
修改gc调用接口 Signed-off-by: haoxiaohui <haoxiaohui1@huawei.com> 8 个月前
分布式音乐、分布式计算器、时钟应用升级API14 Signed-off-by: zhuhaokun <zhuhaokun1@huawei.com> 1 年前
IssueNo: #I6FN5Y:readme整改 Description: readme Update Sig: SIG_applications_app_samples Feature or Bugfix: Feature Binary Source: No Signed-off-by: mashitao2 <mashitao2@huawei.com> 3 年前
修改时钟签名文件 Signed-off-by: nobbo <gaoshang22@huawei.com> 2 年前
分布式音乐、分布式计算器、时钟应用升级API14 Signed-off-by: zhuhaokun <zhuhaokun1@huawei.com> 1 年前
arkts整改 Signed-off-by: zwx1126739 <zhanghong121@huawei.com> 2 年前
分布式音乐、分布式计算器、时钟应用升级API14 Signed-off-by: zhuhaokun <zhuhaokun1@huawei.com> 1 年前
change api 24 to 26 Signed-off-by: hlzhangaj <zhanghanlin16@h-partners.com> 2 个月前
IssueNo: #I73TBH:Game2048,ArkTSClock,CustomShare ohpm适配 Description: Game2048,ArkTSClock,CustomShare ohpm migration. Sig: SIG_applications_app_samples Feature or Bugfix: Feature Binary Source: No Signed-off-by: zwx1094577 <zhongyuyan1@huawei.com> 2 年前
分布式音乐、分布式计算器、时钟应用升级API14 Signed-off-by: zhuhaokun <zhuhaokun1@huawei.com> 1 年前
ArkTSClock测试用例 Signed-off-by: yanhuan <yanhuan15@huawei.com> 3 年前
README.md

Simple Clock

Introduction

This sample exemplifies how to implement a simple clock application using the eTS UI capability.

Usage

The UI uses setInterval to update the time at regular intervals and uses Canvas to draw the clock, where the rotation angles of the clock hands are obtained through calculation.

For example, 2 * Math.PI / 60 * second indicates the rotation angle of the second hand.

Constraints

  1. This sample can only be run on standard-system devices.

  2. This sample demonstrates the stage model, which supports only API Version 10 Release.

  3. The DevEco Studio version used in this sample must be (4.0 Release) or later.