Java tutorial
//package com.java2s; import java.util.Calendar; import java.util.GregorianCalendar; public class Main { public static String getCreateTime() { String createtime = null; Calendar calendar = new GregorianCalendar(); createtime = Long.toString(calendar.getTimeInMillis()); return createtime; } }