Advertisement
Guest User

Untitled

a guest
Apr 24th, 2019
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. void displayMilitaryTime(struct tm * currentTime) {
  2. char date[11];
  3.  
  4. /* 13:34:23 */
  5. char time[9];
  6.  
  7.  
  8.  
  9. }
  10.  
  11. void displayNormalTime(struct tm * currentTime) {
  12. char date[11];
  13.  
  14. /* 01:34:23 PM */
  15. char time[9];
  16.  
  17. int isNight = ();
  18.  
  19. }
  20.  
  21. void displayTime(struct tm * currentTime) {
  22.  
  23. char date[11];
  24. char time[9];
  25.  
  26. sprintf(date, "%02d/%02d/%04d", currentTime->month, currentTime->day, currentTime->year);
  27. lcd_puts2(date);
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement