How to test code that uses time? | Hacker News Reader