格林威治时间计算

public class Test { 
	public static void main(String args[]) 
	{ 
		Calendar c = Calendar.getInstance(); 
		c.setTimeInMillis(1234567890123L);
		 int year = c.get(Calendar.YEAR); 
		 //注意:month特殊,是从0开始的,也就是0表示1月 
		 int month = c.get(Calendar.MONTH); 
		 int day = c.get(Calendar.DAY_OF_MONTH); 
		 System.out.println("设置的时间是" + year + "年" + (month + 1) + "月" + day+ "日"); 
	 } 
 }
 
 
 
 
//运行结果:设置的时间是 2009 年 2 月 14 日
原文地址:https://www.cnblogs.com/xiaoqisfzh/p/4702198.html