#include #include #include int main(void) { time_t curtime; struct tm* utctime; double swatchTime; curtime = time(NULL); utctime = gmtime(&curtime); swatchTime = (((utctime->tm_hour + 1) % 24) * 60 + utctime->tm_min) * 60 + utctime->tm_sec; swatchTime /= 84.6; printf("%3.2f", swatchTime); return EXIT_SUCCESS; }