Mercurial > repo
comparison bin/beat @ 11937:3a5df91432c4 draft
<wob_jonas> `` /bin/sed -i \'1a\\# beat - prints current Swatch Internet Time\' bin/beat
author | HackEso <hackeso@esolangs.org> |
---|---|
date | Fri, 13 Sep 2019 11:17:40 +0000 |
parents | 5291f08331b3 |
children | d1bee51ebc7e |
comparison
equal
deleted
inserted
replaced
11936:5291f08331b3 | 11937:3a5df91432c4 |
---|---|
1 #!/usr/bin/python3 | 1 #!/usr/bin/python3 |
2 # beat - prints current Swatch Internet Time | |
2 import math,time | 3 import math,time |
3 b = math.floor(((time.time()+3600) % 86400) / 86.4) | 4 b = math.floor(((time.time()+3600) % 86400) / 86.4) |
4 print("%03d"%(b,)) | 5 print("%03d"%(b,)) |