@ Pure public static double fromSeconds ( double value , TimeUnit outputUnit ) { switch ( outputUnit ) { case DAYS : return value / 86400. ; case HOURS : return value / 3600. ; case MINUTES : return value / 60. ; case SECONDS : break ; case MILLISECONDS : return unit2milli ( value ) ; case MICROSECONDS : return unit2micro ( value ) ; case NANOSECONDS : return unit2nano ( value ) ; default : throw new IllegalArgumentException ( ) ; } return value ; }
Convert the given value expressed in seconds to the given unit .