Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void displayMilitaryTime(struct tm * currentTime) {
- char date[11];
- /* 13:34:23 */
- char time[9];
- }
- void displayNormalTime(struct tm * currentTime) {
- char date[11];
- /* 01:34:23 PM */
- char time[9];
- int isNight = ();
- }
- void displayTime(struct tm * currentTime) {
- char date[11];
- char time[9];
- sprintf(date, "%02d/%02d/%04d", currentTime->month, currentTime->day, currentTime->year);
- lcd_puts2(date);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement