Name Date Size

..25-Oct-20244 KiB

.gitignoreH A D25-Oct-2024119

AppScope/H25-Oct-20244 KiB

build-profile.json5H A D25-Oct-20241.1 KiB

entry/H25-Oct-20244 KiB

hvigor/H25-Oct-20244 KiB

hvigorfile.tsH A D25-Oct-2024159

hvigorwH A D25-Oct-20242.1 KiB

hvigorw.batH A D25-Oct-20242 KiB

oh-package.json5H A D25-Oct-2024842

ohosTest.mdH A D25-Oct-2024358

README.mdH A D25-Oct-2024671

README_zh.mdH A D25-Oct-20242.1 KiB

screenshots/device/H25-Oct-20244 KiB

signature/H25-Oct-20244 KiB

README.md

1# Simple Clock
2
3### Introduction
4
5This sample exemplifies how to implement a simple clock application using the eTS UI capability.
6
7### Usage
8
9The 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.
10
11For example, **2 * Math.PI / 60 * second** indicates the rotation angle of the second hand.
12
13### Constraints
14
151. This sample can only be run on standard-system devices.
16
172. This sample demonstrates the stage model, which supports only API Version 10 Release.
18
193. The DevEco Studio version used in this sample must be (4.0 Release) or later.
20