.getTime12
DESCRIPTION
.getTime12
Returns a string of the time in 12 hour format, including the seconds and 'AM' or 'PM'
SYNTAX
rtc.getTime12();
PARAMETERS
None.
RETURNS
A string with in format HH:MM:SSAM or HH:MM:SSPM.
EXAMPLE
#include
#include
#include
#include
InvIoT_U1 lcd(A0, A1); InvIoT_RTC rtc; void setup() { rtc.init(); } void loop() { lcd.clear(); lcd.print(rtc.getTime12()); delay(250); }
SEE ALSO
.setYYMMDDHHMMSS
.setYYMMDD
.setHHMMSS
.getYYMMDDHHMMSS
.getTime24