获得系统时间
<%@ page language="java" contentType="text/html;charset=GBK"%><%@ page import="java.util.*"%>
<SCRIPT language="JavaScript">
var dnow = new Date();
dhours = dnow.getHours();
int dminutes = dnow.getMinutes();
int dseconds =dnow.getSeconds();
document.write("<br>:" + dhours + ":" + dminutes + ":" + dseconds</br>);
</SCRIPT >
<%
Date dnow = new Date();
int dhours = dnow.getHours();
int dminutes = dnow.getMinutes();
int dseconds =dnow.getSeconds();
out.print("当前服务器:" + dhours +":" + dminutes + ":" + dseconds);
%>
有谁能解决这段代码 得到系统时间不