Code Comments
Programming Forum and web based access to our favorite programming groups.How can I get current time in milliseconds in ASP?
Post Follow-up to this message*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
Post Follow-up to this messageSo 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 > >
Post Follow-up to this message*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/
Post Follow-up to this message> *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?
Post Follow-up to this message*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
Post Follow-up to this message> *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 ?
Post Follow-up to this message*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
Post Follow-up to this messagehttp://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? > >
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.