SensorLib 0.5.0
Multi-platform sensor driver library for Arduino, PlatformIO, and ESP-IDF
Loading...
Searching...
No Matches
RTC_DateTime Class Reference

#include <SensorRTC.h>

Public Member Functions

 RTC_DateTime ()
 
 RTC_DateTime (uint16_t year, uint8_t month, uint8_t day, uint8_t hour, uint8_t minute, uint8_t second, uint8_t week=0)
 
 RTC_DateTime (struct tm info)
 
 RTC_DateTime (const char *date, const char *time)
 
bool operator== (RTC_DateTime d)
 
struct tm toUnixTime ()
 
uint16_t getYear () const
 
uint8_t getMonth () const
 
uint8_t getDay () const
 
uint8_t getHour () const
 
uint8_t getMinute () const
 
uint8_t getSecond () const
 
uint8_t getWeek () const
 

Detailed Description

Definition at line 48 of file SensorRTC.h.

Constructor & Destructor Documentation

◆ RTC_DateTime() [1/4]

RTC_DateTime::RTC_DateTime ( )
inline

Definition at line 66 of file SensorRTC.h.

◆ RTC_DateTime() [2/4]

RTC_DateTime::RTC_DateTime ( uint16_t  year,
uint8_t  month,
uint8_t  day,
uint8_t  hour,
uint8_t  minute,
uint8_t  second,
uint8_t  week = 0 
)
inline

Definition at line 68 of file SensorRTC.h.

◆ RTC_DateTime() [3/4]

RTC_DateTime::RTC_DateTime ( struct tm  info)
inline

Definition at line 71 of file SensorRTC.h.

◆ RTC_DateTime() [4/4]

RTC_DateTime::RTC_DateTime ( const char *  date,
const char *  time 
)
inline

Definition at line 74 of file SensorRTC.h.

Member Function Documentation

◆ getDay()

uint8_t RTC_DateTime::getDay ( ) const
inline

Definition at line 147 of file SensorRTC.h.

Referenced by loop(), SensorPCF85063::setDateTime(), and SensorPCF8563::setDateTime().

◆ getHour()

uint8_t RTC_DateTime::getHour ( ) const
inline

Definition at line 148 of file SensorRTC.h.

Referenced by loop(), SensorPCF85063::setDateTime(), and SensorPCF8563::setDateTime().

◆ getMinute()

uint8_t RTC_DateTime::getMinute ( ) const
inline

Definition at line 149 of file SensorRTC.h.

Referenced by loop(), SensorPCF85063::setDateTime(), and SensorPCF8563::setDateTime().

◆ getMonth()

uint8_t RTC_DateTime::getMonth ( ) const
inline

◆ getSecond()

uint8_t RTC_DateTime::getSecond ( ) const
inline

Definition at line 150 of file SensorRTC.h.

Referenced by loop(), SensorPCF85063::setDateTime(), and SensorPCF8563::setDateTime().

◆ getWeek()

uint8_t RTC_DateTime::getWeek ( ) const
inline

Definition at line 151 of file SensorRTC.h.

◆ getYear()

uint16_t RTC_DateTime::getYear ( ) const
inline

◆ operator==()

bool RTC_DateTime::operator== ( RTC_DateTime  d)
inline

Definition at line 125 of file SensorRTC.h.

◆ toUnixTime()

struct tm RTC_DateTime::toUnixTime ( )
inline

Definition at line 131 of file SensorRTC.h.

Referenced by SensorRTC::getDateTime(), SensorRTC::hwClockRead(), and loop().


The documentation for this class was generated from the following file: