Calendar cal = new GregorianCalendar(2008, 10, 31, 10, 00);
Long start = cal.getTimeInMillis();
System.out.println(start);
Calendar cal2 = new GregorianCalendar(2008, 11, 1, 10, 00);
Long end = cal2.getTimeInMillis();
System.out.println(end);
Output :
Start Date in ms = 1228154400000
End Date in ms = 1228154400000
Diff = 0
Originally posted by lavanya Ananth:
I gave the debug parameters as optional VM arguments
-Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX ermSize=48m -XX:MaxPermSize=128m -Xverify:none -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n -Ddsco.datasource=exodys_oracle -Dweblogic.log.Log4jLoggingEnabled=true -da