summaryrefslogtreecommitdiff
path: root/hacks/dcp_time_to_tc
blob: bfb396678b8f1ed596070a8eed2e117bdf7d7695 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/python3

import sys

TICKS = 96000

in_time = int(sys.stdin.readline())
h = in_time // (TICKS * 60 * 60)
in_time -= h * (TICKS * 60 * 60)
m = in_time // (TICKS * 60)
in_time -= m * (TICKS * 60)
s = in_time // TICKS
in_time -= s * TICKS

print('%02d:%02d:%02d' % (h, m, s))