/**
*
*/
package com.test;
import java.util.Date;
/**
* @author Administrator
*
*/
public class YestoryTime {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
long today = System.currentTimeMillis();
long yestory = today - 1000*60*60*24 ;
Date time = new Date( yestory ) ;
System.out.println(time.getDate()+"号"+time.getHours()+"时"+time.getMinutes()+"分"+time.getSeconds()+"秒");
}
}