Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

time in millisecond
How can I get current time in milliseconds in ASP?



Report this thread to moderator Post Follow-up to this message
Old Post
szymex
07-29-04 01:55 PM


Re: time in millisecond
*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



Report this thread to moderator Post Follow-up to this message
Old Post
Andrew Urquhart
07-29-04 01:55 PM


Re: time in millisecond
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
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
szymex
07-29-04 01:55 PM


Re: time in millisecond
*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/



Report this thread to moderator Post Follow-up to this message
Old Post
Andrew Urquhart
07-29-04 01:55 PM


Re: time in millisecond

> *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?



Report this thread to moderator Post Follow-up to this message
Old Post
szymex
07-29-04 01:55 PM


Re: time in millisecond
*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



Report this thread to moderator Post Follow-up to this message
Old Post
Andrew Urquhart
07-29-04 01:55 PM


Re: time in millisecond
> *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 ?



Report this thread to moderator Post Follow-up to this message
Old Post
szymex
07-29-04 01:55 PM


Re: time in millisecond
*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



Report this thread to moderator Post Follow-up to this message
Old Post
Andrew Urquhart
07-29-04 01:55 PM


Re: time in millisecond
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?
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
Aaron [SQL Server MVP]
07-29-04 08:55 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

ASP archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 04:29 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.