Hacker News new | past | comments | ask | show | jobs | submit login

I was about to comment the same - even before ITimeProvider existed it was already very common to have an ITime or IDate or IDateTime etc that would then be implemented as you need for tests.

Having this now as a built-in is excellent.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: