摘要:
try { URL url=new URL("http://open.baidu.com/special/time/");//取得资源对象 URLConnection uc; uc = url.openConnection(); uc.connect(); //发出连接 long ld=uc.getDate(); //取得网站日期时间 Date date=new Date(ld); //转换为标准时间对象 //分别取... 阅读全文
posted @ 2013-06-08 15:45 IT_louis 阅读(475) 评论(0) 推荐(0) 编辑