Quantcast
Channel: Javalobby - Comments for "Thursday Code Puzzler: Binary Clock"
Viewing all articles
Browse latest Browse all 17

A short perl one-liner

$
0
0

A short perl one-liner calculating the correct result without putting any knowledge about seconds in a minute, hour or day into it by just relying on standard perl functions:

while(1){$_+=(unpack"%32B*",pack"i3",gmtime++$i)||last}print

Viewing all articles
Browse latest Browse all 17

Latest Images

Trending Articles





Latest Images