Java tutorial
//package com.java2s; import android.text.format.Time; public class Main { /** * Transform a long representation of a Date into Time * @param dateLong: date in milliseconds from epoch * @return time representing the date */ public static Time longToTime(long dateLong) { Time time = new Time(); time.set(dateLong); return time; } }