PreviousNext
Help > RITTLE FOR THE PIC32MZ MICROCONTROLLER > Real-Time Clock and Calendar > gettime
gettime

Format:                                                                        

text= gettime;

Get time and date from the RTCC and return a fixed length 16-character text in the same format as in the settime() function. In case there are invalid characters in the text (such as in case the RTCC has not been initialised with a proper time, or is not functioning normally), the invalid characters are marked as ‘#’ within the returned text.