summaryrefslogtreecommitdiffstats
path: root/Smol Watch Project/My Project/mars_clock.c
blob: ad7562e90e9c115479dc9b101db1e53776d1d520 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*
 * mars_clock.c
 *
 * Created: 4/29/2021 11:36:26 PM
 *  Author: joeycastillo
 */ 
#include <stdio.h>
#include <math.h>
#include "mars_clock.h"

// note: mars time not working, committing just the earth clock.

void update_display(Watch *watch, struct calendar_date_time date_time) {
	char buf[6];
	sprintf(&buf[0], "TE  %02d%02d", date_time.time.hour, date_time.time.min);
	watch_display_string(watch, buf, 0);
}