Here you can find the source of currentTimeLabel()
public static String currentTimeLabel()
//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 ww w. j a v a 2 s .c o m * Returns label for current time. * * @return label for current time. */ public static String currentTimeLabel() { return formatter.format(new Date(System.currentTimeMillis())); } }