Go to the documentation of this file.
6 String HTML_startDate(
const DateTime& dateTime);
7 String HTML_startTime(
const DateTime& dateTime);
33 RTCDateTime dateTime =
rtc.getDateTime();
40 RTCDateTime dateTime =
rtc.getDateTime();
41 String date = String(dateTime.day) +
"." +
42 String(dateTime.month) +
"." +
43 String(dateTime.year);
52 return rtc.getDateTime();
60 return fce->second(*
this);
63 String HTML_startDate(
const DateTime& dateTime) {
67 String HTML_startTime(
const DateTime& dateTime) {
static DateTime * instance
the instance of the class (Singleton)
#define FORMAT_2_DIGITS(x)
Converts the number given as a parameter into a 2 digit string.
String getDateStr() const
Returns the current day in a string format.
const String getHTMLData(const int id) const
Since this class is registered as a source of data for the HTML content, it needs return the appropri...
friend String HTML_startDate(const DateTime &dateTime)
Associated function for returing the start day of the device.
static DateTime * getInstance()
Returns the instance of the class.
static const String UNDEFINED_DATA
string "UNDEFINED"
String startTime
start time of the system
DateTime()
Constructor of the class.
std::map< int, String(*)(const DateTime &dateTime)> htmlData
A map of different values (keys) and their associated functions which returns the appropriate values.
friend String HTML_startTime(const DateTime &dateTime)
Associated function for returing the start time of the device.
DS3231 rtc
real-time module
String getDateTimeStr() const
Returns the current datatime in a string format.
String startDate
start day of the system
RTCDateTime getDateTime() const
Returns the current datatime.
String getTimeStr() const
Returns the current time in a string format.