Refactors TimeUnit.