add an adapter for TimeUnit