Android Time Get toTime(int time)

Here you can find the source of toTime(int time)

Description

to Time

Declaration

public static String toTime(int time) 

Method Source Code

//package com.java2s;

public class Main {

    public static String toTime(int time) {
        time /= 1000;/*w w  w .j  a  v a 2 s  . c  om*/
        int minute = time / 60;
        int hour = minute / 60;
        int second = time % 60;
        minute %= 60;
        return String.format("%02d:%02d", minute, second);
    }
}

Related

  1. getCurrentTime()
  2. Now(String time)
  3. getCurrentTime()
  4. intConvertTime(int hour, int minut)
  5. getCurrentTime(String format)
  6. getCurrentTimeString()