473,769 Members | 3,567 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

time in millisecond

How can I get current time in milliseconds in ASP?
Jul 19 '05 #1
8 22885
*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="JS cript"%>
<%=(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="JS cript"%>
<%=(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.new s.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
2026
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 webform and website are both on the same machine,it will waste below 50 millisecond. but when the webform is on other machine in the same local network,it will waste above 150 millisecond. why?it's a urgent problem,please help me and tell me how...
0
940
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, it waste about 75 millisecond if website and the client are both on the same machine or are on different machine in the same local network. 2、when the client(IE) is C++ ActiveX Control,it waste about 75 millisecond if the client and the...
10
34396
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 something like this in ANSI C++ which allows access up to milliseconds. I know that time.h and CTime allow access up to the second level, but I need to work in the msec level. Any help will be appreciated.
8
11172
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
55756
by: Pravesh | last post by:
Hi: is there a way to get current system time in milliseconds... which functions and headers?? thanks pravesh
175
8903
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 changed". This is very much against my instincts. Can anyone offer some solid design guidelines for me? Thanks in advance....
7
99899
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 find anything. i hope i will get the help thanks & regards Saurabh
3
2031
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 to be able to do comparisons on them.
12
16367
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()' function call for the purpose and regardless of how many time I invoke the function within my program, I get the same output!!! For better clarity consider the code snippet below. ... start_time = time(NULL);
8
3779
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 me the current millisecond or something like that:
0
9579
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
9416
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10199
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10035
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9981
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5293
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5436
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3948
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3551
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.