Here you can find the source of getCurrSysTime()
public static String getCurrSysTime()
//package com.java2s; import java.text.SimpleDateFormat; import java.util.Date; public class Main { /**/*from w ww . java2 s. com*/ * @return String */ public static String getCurrSysTime() { Date date = new Date(); SimpleDateFormat sf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); return sf.format(date); } }