This time in December October 5-14, 1582 was lost.
Import Java. text. simpledateformat; <br/> Import Java. util. calendar; <br/> Import Java. util. date; </P> <p> public class test1582 {<br/> Public static void main (string [] ARGs) {<br/> simpledateformat formatter = new simpledateformat ("mm/DD/YYYY eee"); <br/> calendar c = calendar. getinstance (); <br/> C. set (1582, 9, 4); <br/> date = new date (); <br/> date. settime (C. gettimeinmillis (); <br/> system. out. println (formatter. format (date); <br/> // forward one day <br/> date. settime (C. gettimeinmillis () + 1x24x60*60*1000); <br/> system. out. println (formatter. format (date); <br/>}< br/>/** output: <br/> * 10/04/1582 Thu <br/> * 10/15/1582 Fri <br/> */
For more information, see:
Http://topic.csdn.net/u/20100617/08/951977CC-23A1-4E45-BA1E-525C5F7039BA.html
Http://www.cnblogs.com/skyivben/archive/2010/06/14/1758056.html