Code example for Time

Methods: format, set

0
     * @param now Current system time from {@link System#currentTimeMillis()} 
     *            for calculating time difference. 
     */ 
    public static String format(String msg) {
    	long unixTime = System.currentTimeMillis();
        Time time = new Time();
        time.set(unixTime);
 
        return String.format("[%s] %s ", time.format("%d-%m-%Y %H:%M:%S"), msg);
    }	 
}