getEpochTime()
permits to calculate the Unix time associated to a specific year, month, day, hour, minute and second values. It is possible to indicate these values as input or use the current values of the RTC.getEpochTime()
updates the RTC attributes because it calls getTime()
function.breakTimeAbsolute()
permits to convert the input epoch time to time and date values (as UTC components). Thus, it can be useful to add/subtract times. For example: get Epoch time from RTC and add several seconds to calculate a new time instant.timestamp_t
is defined in WaspRTC class for converting epoch time into UTC timestamps.breakTimeOffset()
permits to convert the input (great period of seconds) into offset time values (as the number of days, hours, minutes and seconds that the input argument defines). Thus, it can be useful to add/subtract times. For example: get Epoch time from RTC in different instants and then calculate the difference as number of days, hours, minutes and seconds.timestamp_t
is defined in WaspRTC class for converting great periods of seconds into number of days, hours, minutes and seconds.