| Author |
time in millisecond
|
|
| szymex 2004-07-29, 8:55 am |
| How can I get current time in milliseconds in ASP?
| |
| Andrew Urquhart 2004-07-29, 8:55 am |
| *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
| |
| szymex 2004-07-29, 8:55 am |
| So it is no possibility to do it in ASP?
> *szymex* wrote:
>
> 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
>
>
| |
| Andrew Urquhart 2004-07-29, 8:55 am |
| *szymex* wrote:
>
> 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/
| |
| szymex 2004-07-29, 8:55 am |
|
> *szymex* wrote:
>
> 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?
| |
| Andrew Urquhart 2004-07-29, 8:55 am |
| *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
| |
| szymex 2004-07-29, 8:55 am |
| > *szymex* wrote:
>
> <%
> 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 ?
| |
| Andrew Urquhart 2004-07-29, 8:55 am |
| *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
| |
| Aaron [SQL Server MVP] 2004-07-29, 3:55 pm |
| http://www.aspfaq.com/2093
--
http://www.aspfaq.com/
(Reverse address to reply.)
"szymex" <szymex@vp.pl> wrote in message
news:ceao56$k04$1@atlantis.news.tpi.pl...
> How can I get current time in milliseconds in ASP?
>
>
|
|
|
|