首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > JavaScript >

JSP获取系统时时

2012-08-22 
JSP获取系统时刻获得系统此刻时间的代码?Timestamp stamp new Timestamp(new Date().getTime())?Simple

JSP获取系统时刻

获得系统此刻时间的代码
?Timestamp stamp = new Timestamp(new Date().getTime());
?SimpleDateFormat format=new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
?String thistime = format.format(stamp);

??System.out.println(thistime);

热点排行
Bad Request.