Calendar cal = Calendar.getInstance(TimeZone.getTimeZone("GMT+5.5"));
cal.setTimeInMillis(1370883599l);
Calendar cal1 = Calendar.getInstance(TimeZone.getTimeZone("GMT+5.5"));
cal1.setTimeInMillis(java.lang.System.currentTimeMillis()/1000);
long time_difference = cal.getTimeInMillis() - cal1.getTimeInMillis();
cal.setTimeInMillis(1370883599l);
Calendar cal1 = Calendar.getInstance(TimeZone.getTimeZone("GMT+5.5"));
cal1.setTimeInMillis(java.lang.System.currentTimeMillis()/1000);
long time_difference = cal.getTimeInMillis() - cal1.getTimeInMillis();