Java Millisecond to Hour getHoursFromMillis(long ms)

Here you can find the source of getHoursFromMillis(long ms)

Description

get Hours From Millis

License

Open Source License

Declaration

public static String getHoursFromMillis(long ms) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static String getHoursFromMillis(long ms) {
        double numSeconds = ((ms) / 1000d);
        return String.valueOf(numSeconds / 3600);
    }//from  w  w  w .  j  av  a 2 s.com
}

Related

  1. getHoursIntoMilliseconds(int nbHours)
  2. getHourSpareFromMilliSecond(int milliSecond)
  3. getMilliSecondByHourAndMins(int hour, int min)
  4. getMillisFromHours(String hours)