Mercurial > repo
changeset 11936:5291f08331b3 draft
<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
author | HackEso <hackeso@esolangs.org> |
---|---|
date | Fri, 13 Sep 2019 11:15:34 +0000 |
parents | 4ade46a1e935 |
children | 3a5df91432c4 |
files | bin/beat |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/beat Fri Sep 13 10:44:14 2019 +0000 +++ b/bin/beat Fri Sep 13 11:15:34 2019 +0000 @@ -1,4 +1,4 @@ #!/usr/bin/python3 import math,time -b = math.floor(100*((time.time()+3600) % 86400) / 86.4) -print("%03d.%02d"%(b//100,b%100)) +b = math.floor(((time.time()+3600) % 86400) / 86.4) +print("%03d"%(b,))