473,371 Members | 1,479 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,371 software developers and data experts.

time in millisecond

How can I get current time in milliseconds in ASP?
Jul 19 '05 #1
8 22736
*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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: IIS的响应时间问题,急!!!多谢无 | last post by:
i distribute a website on IIS which is programmed with C# HttpHandler,then i pragram a Winform client to send empty call to the website and record the time that the call return to client. when the...
0
by: IIS的响应时间问题,急!!!多谢无 | last post by:
i distribute a website on IIS which is programmed with C# HttpHandler,then i send empty call to the website and record the time that the call return to client. 1、when the client is C# Winform,...
10
by: Partho Choudhury | last post by:
Hi all: I need to add a snippet which access the system time (upto atleast milliseconds) using ANSI std. C++. I cannot use MFC and Win32 APIs in my program for now for various reasons. Is there...
8
by: wavelet | last post by:
Hi, I am searching one time function under windows2000 with Visual C++ environment. Is there function available like gethrtime() in unix? Thx. #include <sys/time.h> main()
26
by: Pravesh | last post by:
Hi: is there a way to get current system time in milliseconds... which functions and headers?? thanks pravesh
175
by: Ken Brady | last post by:
I'm on a team building some class libraries to be used by many other projects. Some members of our team insist that "All public methods should be virtual" just in case "anything needs to be...
7
by: Saurabh | last post by:
Hi , i am working with g++ on Linux.is there a way in C++ to get current time in milliseconds.( <ctime> provides accuracy upto seconds). I googled for it,searched the newsgroup but couldnt...
3
by: cj | last post by:
If I want to check to see if it's after "11:36 pm" what would I write? I'm sure it's easy but I'm getting tired of having to work with dates and times. Sometimes I just want time or date. And...
12
by: Spitfire | last post by:
I've a requirement to find the elapsed time between two function calls. I need to find the time elapsed accurate to 1 millisecond. The problem I'm facing right now is that, I'm using the 'time()'...
8
by: Magesh | last post by:
Consider a block, fncall( ); /* tells me the current millisecond or something like that: time-1 */ {/* block of code for which I need to know the exec time ... ... ... } fncall( ); /* tells...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.