贫民窟里的程序高手

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2011年10月26日

摘要: //现在时间的TIMESTAMPlong epoch = System.currentTimeMillis()/1000;//某一时间的TIMESTAMPCalendar c = Calendar.getInstance();c.setTime(....);c.getTimeInMillis()/1000;Calendar c = Calendar.getInstance();c.set(2010,3,11); //注意此处,应该是3不是4c.getTimeInMillis()/1000; 阅读全文
posted @ 2011-10-26 18:11 贫民窟里的程序高手 阅读(2578) 评论(0) 推荐(0)