Mercurial > repo
annotate 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 |
rev | line source |
---|---|
11934
0c0c59f53dc2
<wob_jonas> `` echo \'#!/usr/bin/python3; import math,time; b = math.floor(100*((time.time()+3600) % 86400) / 86.4); print("%03d.%02d"%(b//100,b%100))\' | tr \\; \\\\n > bin/beat; chmod -v a+x bin/beat
HackEso <hackeso@esolangs.org>
parents:
11933
diff
changeset
|
1 #!/usr/bin/python3 |
11937
3a5df91432c4
<wob_jonas> `` /bin/sed -i \'1a\\# beat - prints current Swatch Internet Time\' bin/beat
HackEso <hackeso@esolangs.org>
parents:
11936
diff
changeset
|
2 # beat - prints current Swatch Internet Time |
11935
4ade46a1e935
<wob_jonas> `` echo \'#!/usr/bin/python3;import math,time;b = math.floor(100*((time.time()+3600) % 86400) / 86.4);print("%03d.%02d"%(b//100,b%100))\' | tr \\; \\\\n > bin/beat; chmod -v a+x bin/beat
HackEso <hackeso@esolangs.org>
parents:
11934
diff
changeset
|
3 import math,time |
11936
5291f08331b3
<wob_jonas> `` echo \'#!/usr/bin/python3;import math,time;b = math.floor(((time.time()+3600) % 86400) / 86.4);print("%03d"%(b,))\' | tr \\; \\\\n > bin/beat; chmod -v a+x bin/beat
HackEso <hackeso@esolangs.org>
parents:
11935
diff
changeset
|
4 b = math.floor(((time.time()+3600) % 86400) / 86.4) |
5291f08331b3
<wob_jonas> `` echo \'#!/usr/bin/python3;import math,time;b = math.floor(((time.time()+3600) % 86400) / 86.4);print("%03d"%(b,))\' | tr \\; \\\\n > bin/beat; chmod -v a+x bin/beat
HackEso <hackeso@esolangs.org>
parents:
11935
diff
changeset
|
5 print("%03d"%(b,)) |