1 Star 0 Fork 4.9K

Lin_bruin / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
RtcTime.md 5.92 KB
一键复制 编辑 原始数据 按行查看 历史
wenjun 提交于 2020-09-08 10:08 . add OpenHarmony 1.0 baseline

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 Documentation

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.

1
https://gitee.com/dreaminghell/docs.git
git@gitee.com:dreaminghell/docs.git
dreaminghell
docs
docs
master

搜索帮助