Here you can find the source of getTime1()
public static String getTime1()
//package com.java2s; public class Main { public static String getTime1() { java.util.Date date1 = new java.util.Date(); return date1.toString(); }// w ww. ja va 2 s. co m }