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

  1. uint8_tRtcTime::day

Description:

Day. The value ranges from 1 to 31.

hour

  1. uint8_tRtcTime::hour

Description:

Hour. The value ranges from 0 to 23.

millisecond

  1. uint16_tRtcTime::millisecond

Description:

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

minute

  1. uint8_tRtcTime::minute

Description:

Minute. The value ranges from 0 to 59.

month

  1. uint8_tRtcTime::month

Description:

Month. The value ranges from 1 to 12.

second

  1. uint8_tRtcTime::second

Description:

Second. The value ranges from 0 to 59.

weekday

  1. uint8_tRtcTime::weekday

Description:

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

year

  1. uint16_tRtcTime::year

Description:

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