Hacker News new | ask | show | jobs
by Sephr 4805 days ago
That is a lot of if statements just to get some directly adjacent unicode characters, which can easily be generated with some simple math.

This solution may be a little terse (96 bytes; I wrote it for the 140bytes golfing challenge), but it should help explain how to get the current time's clock character: https://gist.github.com/eligrey/985721#file-annotated-js