Mercurial > repo
changeset 11934:0c0c59f53dc2 draft
<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
author | HackEso <hackeso@esolangs.org> |
---|---|
date | Fri, 13 Sep 2019 10:43:27 +0000 |
parents | dea37ae411c0 |
children | 4ade46a1e935 |
files | bin/beat |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/beat Fri Sep 13 10:13:42 2019 +0000 +++ b/bin/beat Fri Sep 13 10:43:27 2019 +0000 @@ -1,1 +1,4 @@ -s=$(date +%s); printf '@%03d' $(((s+3600) % 86400 * 10 / 864)) +#!/usr/bin/python3 + import math,time + b = math.floor(100*((time.time()+3600) % 86400) / 86.4) + print("%03d.%02d"%(b//100,b%100))