import org.junit.Test;
import java.util.Date;
public class DateTimeTest {
@Test
public void test2()
{
Date date1=new Date();
System.out.println(date1.toString());
System.out.println(date1.getTime());
java.sql.Date date3=new java.sql.Date(35235325345L);
System.out.println(date3);
Date date4=new java.sql.Date(35235325345L);
java.sql.Date date5=(java.sql.Date) date4;
Date date6=new Date();
java.sql.Date date7=new java.sql.Date(date6.getTime());
}
@Test
public void test1()
{
long time=System.currentTimeMillis();
System.out.println(time);
}
}
|