473,804 Members | 2,194 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how obtain this format hh:mm:ss.fff ??

Hello,

I'm trying find out how to obtain and output that format ( hh:mm:ss.fff ) in
my ASP.

if somebody knows, pls let me know..

thx
kris
Jul 19 '05 #1
4 5524
Either set the appropriate System format, or you can use a function like
this:

http://www.adopenstatic.com/resource...formatdate.asp

Cheers
Ken

"Krzysztof Skibniewski" <kr************ *******@lge.pl> wrote in message
news:bl******** **@news2.ipartn ers.pl...
: Hello,
:
: I'm trying find out how to obtain and output that format ( hh:mm:ss.fff )
in
: my ASP.
:
: if somebody knows, pls let me know..
:
: thx
: kris
:
:
Jul 19 '05 #2
Dear, but i really care about miliseconds...

regards
kris
"Ken Schaefer" <ke*******@THIS adOpenStatic.co m> wrote in message
news:u0******** ******@TK2MSFTN GP10.phx.gbl...
Either set the appropriate System format, or you can use a function like
this:

http://www.adopenstatic.com/resource...formatdate.asp

Cheers
Ken

"Krzysztof Skibniewski" <kr************ *******@lge.pl> wrote in message
news:bl******** **@news2.ipartn ers.pl...
: Hello,
:
: I'm trying find out how to obtain and output that format ( hh:mm:ss.fff ) in
: my ASP.
:
: if somebody knows, pls let me know..
:
: thx
: kris
:
:

Jul 19 '05 #3
"Krzysztof Skibniewski" <kr************ *******@lge.pl> wrote in message
news:bl******** **@news2.ipartn ers.pl...
Hello,

I'm trying find out how to obtain and output that format ( hh:mm:ss.fff ) in my ASP. This is not possible by using standard ASP...
See the Format() function

You would need some API functions to do that... I don't know whether this
code below works. It works with me because I have a TLB. Without a TLB, you
would need to type the 'declare' functions yourselves as I just tried below.

VarTokenizeForm atString
and
VarFormatFromTo kens
from OleAut32.dll

There is a free DLL here that calls them. You can use it...
http://www.nieropwebconsult.nl/downl...nPhasedOut.zip
Study the typelibrary from this DLL to see how to use it :) No manual
available but it is for 99% compatible with Vbscript so no need for another
syntax.
if somebody knows, pls let me know..


Jul 19 '05 #4
Sorry - I didn't see that part (perhaps it would have helped if you'd
highlighted what you wanted).

VBScript functions don't seem to support milliseconds. IIRC JScript does
(but I don't know about the precision that you want). See, for example:
http://www.learnasp.com/learn/speedtimer.asp

Otherwise, you may be best following Egbert's suggestions.

Cheers
Ken

"Krzysztof Skibniewski" <kr************ *******@lge.pl> wrote in message
news:bl******** **@news2.ipartn ers.pl...
: Dear, but i really care about miliseconds...
:
: regards
: kris
: "Ken Schaefer" <ke*******@THIS adOpenStatic.co m> wrote in message
: news:u0******** ******@TK2MSFTN GP10.phx.gbl...
: > Either set the appropriate System format, or you can use a function like
: > this:
: >
: > http://www.adopenstatic.com/resource...formatdate.asp
: >
: > Cheers
: > Ken
: >
: > "Krzysztof Skibniewski" <kr************ *******@lge.pl> wrote in message
: > news:bl******** **@news2.ipartn ers.pl...
: > : Hello,
: > :
: > : I'm trying find out how to obtain and output that format (
: hh:mm:ss.fff )
: > in
: > : my ASP.
: > :
: > : if somebody knows, pls let me know..
: > :
: > : thx
: > : kris
: > :
: > :
: >
: >
:
:
Jul 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
3545
by: Thomas Bärwinkel | last post by:
Hallo, ich würde gerne zwei Zeitangaben im Format hh:mm:ss addieren. z.B.: 00:01:50 + 01:02:12 = 01:03:02 gibt es in PHP Funktionen mit denen ich Zeiten in diesem Format addieren kann? Mit freundlichen Grüßen / with kind regards
1
10104
by: mimi | last post by:
my database has separate field for date and time so we can capture employees' time in and out . In Sql, date can be present in smalldatetime format, which contains only time hh:mm:ss AM/PM. How can I create datetime format in C# like that in order to update database? Thanks in advance
2
6945
by: Robert Brown | last post by:
Hi all. I have written a program that transfers data via FTP. I can calculate the rough amount of time left. I get a value such as 70.83 seconds left for instance. What I want to do is to change this to hh:mm:ss format. Obviously, VB.NET doesn't seem to want to convert this unless it is already a DATETIME cast.
1
2766
by: Jason Chan | last post by:
DateTime mydate = new DateTime(2006,1,1,0,0,0); string testStr = mydate.ToString("hh:mm:ss"); //return 12:00:00 mydate = new DateTime(2006,1,1,1,0,0) testStr = mydate.ToString("hh:mm:ss"); //return 01:00:00 I want "00:00:00" instead of "12:00:00", what is going wrong?
5
10613
by: kpp9c | last post by:
Hi, I was looking at python & datetime and hoping that it would already have a method/func to translate time formats. I need to translate seconds to hh:mm:ss.ms and vice versa and would like the ability to do some basic arithmetic in these formats. I think that there just has to be a package or module out there that already does this with reasonable speed and accuracy.
5
19188
nirmalsingh
by: nirmalsingh | last post by:
i am getting date format in string as 30-11-2006 05:59:44 PM . i want to convert in the format of yyyy-mm-dd hh:mm:ss to sore it in mysql database. Help me with sample coding plz..
3
1258
by: | last post by:
I'm doing some work with ffmpeg, which lets you work with audio and video. ffmpeg's command line accepts timecode information as folllows: 00:00:23. HH:MM.SS I want to increment that counter, say, adding ten seconds 1000 times. I could hack up my own string thingy to do this, but I'm betting there's a way to do this within the .NET framework.
5
27293
by: lofty | last post by:
Hi, I'm building a time report system for work and I want to show the total hours and minutes a project have taken but can't get it to work ... I have a database (MySQL) in one table I have the date in one colum and the time in one colum. The date i formated like this YYYY-MM-DD and set to date. And the TIME is like this HH:mm:ss. My code looks like this right now... <?php $sql="select p.id, p.date, p.time
1
2346
by: Nerds | last post by:
Greetings, I want to write a schema with the format hh:mm:ss AM so will anyone please give me the Exact code for this. Thanks in Advance weber
0
9715
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, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10603
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
10099
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9176
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7643
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6869
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5536
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
5675
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4314
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

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.