Java tutorial
import java.util.concurrent.TimeUnit; public class Main { public static void main(String[] args) throws Exception { TimeUnit timeUnit = TimeUnit.valueOf(TimeUnit.DAYS.name()); System.out.println(timeUnit); } }