fofr/paulrhayes.com-experiments — pull request #7 by benediktp (2013-08-05 08:08:04+00:00)
Title: Shorten calculation of "hour"

It's not exactly equivalent as your code could output an hour of 12 while mine strictly limits it from 0 to 11. Should be fine though.