Here you can find the source of getTimeLabel(long time)
Parameter | Description |
---|---|
time | the time to return label for. |
public static String getTimeLabel(long time)
//package com.java2s; import java.text.SimpleDateFormat; import java.util.Date; public class Main { private final static SimpleDateFormat formatter = new SimpleDateFormat( "dd/HH:mm:ss"); /**//from www . ja va 2 s .c o m * Returns label for the time. * * @param time * the time to return label for. * @return label for the time. */ public static String getTimeLabel(long time) { return formatter.format(new Date(time)); } }