Java tutorial
//package com.java2s; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Locale; public class Main { public static String getSystime() { String systime; SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss EEEE", Locale.CHINA); systime = dateFormat.format(new Date(System.currentTimeMillis())); return systime; } }