ASP Vbscript Timer Function

Updated on 23 Feb 2012,
Published on 13 Aug 2008

In classic ASP, Vbscript Timer function of time functions series is used to get the total number of seconds since 12:00 AM. Vbscript Timer function evaluates the number of seconds from the beginning of a day i.e. from 0th hour to the current hour + minutes multiplied by 60 + current seconds of minute.

Classic ASP VbScript Time Functions Examples:

You can see the live samples and examples of Classic ASP VbScript Time functions from the following links:

Syntax for ASP Vbscript Timer Function

Timer()

Vbscript Timer function does not accept any parameter.

Examples of Vbscript Timer Function

<%
Response.Write(Time())

Response.Write("<br />")

Response.Write(Timer())

Response.Write("<br />")

Response.Write( (Hour(Time) * 60 * 60) + (Minute(Time) * 60) + Second(Time) )
%>

Output:

You can see the output of above discussed code from the following link:

VbScript Timer Function

Continue to next tutorial: ASP Vbscript TimeValue Function to learn the functionality of TimeValue function.

0 Responses to "ASP Vbscript Timer Function"
Leave a Comment
* required
* required
* will not be published
* optional
* hint: http://www.example.com
  • Subscribe via Email
  • HIRE EzineASP.Net Developers