view 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
line wrap: on
line source

#!/usr/bin/python3
# beat - prints current Swatch Internet Time
import math,time
b = math.floor(((time.time()+3600) % 86400) / 86.4)
print("%03d"%(b,))