1 Star 0 Fork 5.4K

How / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
RtcTime.md 6.45 KB
一键复制 编辑 原始数据 按行查看 历史
[yang] 提交于 2020-12-12 14:19 . Description: update docs 20201212

RtcTime

Overview

Related Modules:

RTC

Description:

Defines the RTC information.

The RTC information includes the year, month, day, day of the week, hour, minute, second, and millisecond. The start time is 1970/01/01 Thursday 00:00:00 (UTC).

Summary

Data Fields

Variable Name

Description

second

uint8_t

minute

uint8_t

hour

uint8_t

day

uint8_t

weekday

uint8_t

month

uint8_t

year

uint16_t

millisecond

uint16_t

Details

**Field **

day

uint8_t RtcTime::day

Description:

Day. The value ranges from 1 to 31.

hour

uint8_t RtcTime::hour

Description:

Hour. The value ranges from 0 to 23.

millisecond

uint16_t RtcTime::millisecond

Description:

Millisecond. The value ranges from 0 to 990, with a precision of 10 milliseconds.

minute

uint8_t RtcTime::minute

Description:

Minute. The value ranges from 0 to 59.

month

uint8_t RtcTime::month

Description:

Month. The value ranges from 1 to 12.

second

uint8_t RtcTime::second

Description:

Second. The value ranges from 0 to 59.

weekday

uint8_t RtcTime::weekday

Description:

Day of the week. The value ranges from 1 to 7, representing Monday to Sunday.

year

uint16_t RtcTime::year

Description:

Year. The value is greater than or equal to 1970.

马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mike-mei/docs.git
git@gitee.com:mike-mei/docs.git
mike-mei
docs
docs
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891