469,268 Members | 942 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,268 developers. It's quick & easy.

time in millisecond

How can I get current time in milliseconds in ASP?
Jul 19 '05 #1
8 20609
*szymex* wrote:
How can I get current time in milliseconds in ASP?


You don't, you get it in VBScript, JScript or PerlScript. In JScript it
would be:

(new Date()).valueOf(); // Number of milliseconds since 1 Jan 1970
--
Andrew Urquhart
- FAQ: www.aspfaq.com
- Archive: www.tinyurl.com/38kzx (Google Groups)
- Contact me: http://andrewu.co.uk/contact/
- Apologies for the wrong timestamp on my post - blame my ISP
Jul 19 '05 #2
So it is no possibility to do it in ASP?
*szymex* wrote:
How can I get current time in milliseconds in ASP?


You don't, you get it in VBScript, JScript or PerlScript. In JScript it
would be:

(new Date()).valueOf(); // Number of milliseconds since 1 Jan 1970
--
Andrew Urquhart
- FAQ: www.aspfaq.com
- Archive: www.tinyurl.com/38kzx (Google Groups)
- Contact me: http://andrewu.co.uk/contact/
- Apologies for the wrong timestamp on my post - blame my ISP

Jul 19 '05 #3
*szymex* wrote:
*szymex* wrote:
How can I get current time in milliseconds in ASP?


You don't, you get it in VBScript, JScript or PerlScript. In JScript
it would be:

(new Date()).valueOf(); // Number of milliseconds since 1 Jan 1970


So it is no possibility to do it in ASP?


ASP is not a language. Here's the value you want in JScript running
/under/ ASP:

<%@language="JScript"%>
<%=(new Date()).valueOf()%>
--
Andrew Urquhart
- FAQ: www.aspfaq.com
- Archive: www.tinyurl.com/38kzx (Google Groups)
- Contact me: http://andrewu.co.uk/contact/
Jul 19 '05 #4
*szymex* wrote:
*szymex* wrote:
How can I get current time in milliseconds in ASP?

You don't, you get it in VBScript, JScript or PerlScript. In JScript
it would be:

(new Date()).valueOf(); // Number of milliseconds since 1 Jan 1970


So it is no possibility to do it in ASP?


ASP is not a language. Here's the value you want in JScript running
/under/ ASP:

<%@language="JScript"%>
<%=(new Date()).valueOf()%>
--


Thanks, I'm sorry I'm new in ASP and have one more question I want to have
that data (time in millisecond) in variable, how can I do that using code
you gave me?
Jul 19 '05 #5
*szymex* wrote:
Thanks, I'm sorry I'm new in ASP and have one more question I want to
have that data (time in millisecond) in variable, how can I do that
using code you gave me?


<%
var intMilliSecs = (new Date()).valueOf();
%>

You're probably wanting the VBScript equivalent since you're new to ASP,
perhaps someone can post it.
--
Andrew Urquhart
- Contact me: http://andrewu.co.uk/contact/
- 'Staccato signals of constant information
A loose affiliation of millionaires and billionaires' - Paul Simon
Jul 19 '05 #6
> *szymex* wrote:
Thanks, I'm sorry I'm new in ASP and have one more question I want to
have that data (time in millisecond) in variable, how can I do that
using code you gave me?


<%
var intMilliSecs = (new Date()).valueOf();
%>

You're probably wanting the VBScript equivalent since you're new to ASP,
perhaps someone can post it.
--


OK, thanks. And last question, is there a MD5 function in VB/J Script ?
Jul 19 '05 #7
*szymex* wrote:
OK, thanks. And last question, is there a MD5 function in VB/J Script
?


I use: http://pajhome.org.uk/crypt/md5/
--
Andrew Urquhart
- Contact me: http://andrewu.co.uk/contact/
- 'Staccato signals of constant information
A loose affiliation of millionaires and billionaires' - Paul Simon
Jul 19 '05 #8
http://www.aspfaq.com/2093

--
http://www.aspfaq.com/
(Reverse address to reply.)


"szymex" <sz****@vp.pl> wrote in message
news:ce**********@atlantis.news.tpi.pl...
How can I get current time in milliseconds in ASP?

Jul 19 '05 #9

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by IIS的响应时间问题,急!!!多谢无 | last post: by
reply views Thread by IIS的响应时间问题,急!!!多谢无 | last post: by
10 posts views Thread by Partho Choudhury | last post: by
26 posts views Thread by Pravesh | last post: by
7 posts views Thread by Saurabh | last post: by
3 posts views Thread by cj | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.