Code example for Time

Methods: formatsetswitchTimezone

0
package com.ninetwozero.battlelog.util; 
 
import android.text.format.Time; 
 
public class TimeFormatter { 
 
    public static String timeString(int timeValue) {
        Time time = new Time();
        time.switchTimezone("UTC");
        time.set(timeValue * 1000);
        return time.format("%kh%Mm");
    } 
} 
Connect your IDE to all the code out there  Get Codota for Java