Here you can find the source of getSystemTime()
public static final String getSystemTime()
//package com.java2s; import java.text.SimpleDateFormat; import java.util.Calendar; public class Main { public static final String getSystemTime() { Calendar c = Calendar.getInstance(); SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); String formattedDate = df.format(c.getTime()); return formattedDate; }//from ww w .j av a 2s . c o m }