Developer World
Spresense Arduino Library v3.3.0-b2e6327
RtcTime Class Reference

RTC time definitions. More...

#include <RtcTime.h>

Public Member Functions

 RtcTime (uint32_t sec=0, long nsec=0)
 Create RtcTime object.
 
 RtcTime (int year, int month, int day, int hour=0, int minute=0, int second=0, long nsec=0)
 
 RtcTime (const char *date, const char *time)
 
uint32_t unixtime () const
 Getter APIs of RtcTime.
 
long nsec () const
 
int year () const
 
int month () const
 
int day () const
 
int hour () const
 
int minute () const
 
int second () const
 
void unixtime (uint32_t sec)
 Setter APIs of RtcTime.
 
void nsec (long nsec)
 
void year (int year)
 
void month (int month)
 
void day (int day)
 
void hour (int hour)
 
void minute (int minute)
 
void second (int second)
 
bool operator== (const RtcTime &other) const
 operator APIs to compare and calculate with RtcTime
 
bool operator!= (const RtcTime &other) const
 
void operator+= (uint32_t seconds)
 
void operator-= (uint32_t seconds)
 
 operator uint32_t () const
 

Detailed Description

RTC time definitions.

This is the time class defined to access to the RtcClass.


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