package com.ebizserve.tarket.junit;
 
import java.util.Date;
import java.text.SimpleDateFormat;
 
/**
  * @author alan.xue
  */
 
public class DateDecrease {
 
    public static void main(String[] args) throws Exception {
 
       Date date1 = new SimpleDateFormat( "yyyy/MM/dd HH:mm:ss" )
              .parse( "2008/12/11 00:00:00" );
       Date date2 = new SimpleDateFormat( "yyyy/MM/dd HH:mm:ss" )
              .parse( "1970/01/01 08:00:00" );
 
       long l = date1.getTime() - date2.getTime() > 0 ? date1.getTime()
              - date2.getTime() : date2.getTime() - date1.getTime();
 
       System. out .println(l / 1000 + " " );
    }
}