Michael
Fri Aug 22 17:04:40 CDT 2003
Naga wrote:
> Hi all
> <script language=vbscript>
> document.write (Time()-1)
> document.write ("<BR>")
> document.write (Time())
> document.write ("<BR>")
> document.write DateDiff ("h",Date,23)
> </script>
>
>
> I want to display The Current time and also Current time -1 hr ( I
> mean theTime should be Less then 1 hr from Current time.)
>
>
<html>
<head>
</head>
<body>
<script language=vbscript>
tm = Time()
document.write "<pre>"
document.write "One hour ago... " & DateAdd("h",-1,tm)
document.write ("<BR>")
document.write "Right now...... " & (tm)
document.write ("<BR>")
document.write "</pre>"
</script>
</html>
--
Michael Harris
Microsoft.MVP.Scripting
Windows 2000 Scripting Guide
Microsoft® Windows®2000 Scripting Guide
http://www.microsoft.com/technet/scriptcenter/scrguide/sagsas_overview.asp
System Administration Scripting Guide - samples scripts
http://www.microsoft.com/downloads/release.asp?ReleaseID=38942
WSH 5.6 documentation download
http://www.microsoft.com/downloads/details.aspx?FamilyId=01592C48-207D-4BE1-8A76-1C4099D7BBB9&displaylang=en