.getAmPm
DESCRIPTION
Returns a string with time on 24 hour format. If no character is pass, the default will be ':'.
SYNTAX
RTC.getTime24HHMM(char);
PARAMETERS
none or a character .
RETURNS
A string with time in the format HH:MM:SS, if character was null or ':'. .
EXAMPLE
#include
#include
#include
#include
InvIoT_U1 lcd(A0, A1); InvIoT_RTC rtc; void setup() { rtc.init(); } void loop() { lcd.clear(); lcd.print(rtc.getTime24HHMM()); lcd.print(" "); lcd.print(rtc.getTime24HHMM('.')); delay(250); }
SEE ALSO
.setYYMMDDHHMMSS
.setYYMMDD
.setHHMMSS
.getYYMMDDHHMMSS
.getTime24