Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

time in milliseconds

Status
Not open for further replies.

ColdFusionKing

Programmer
Dec 5, 2002
145
GB
Hi CFCoders,

I am trying to consume a webservice that has two parameters, start-time and end-time. The values passed to these parameters should be in milliseconds. I don't know how to convert time in milliseconds in coldfusion. Is there a coldfusion function which takes the current time and converts it to milliseconds. Your help is much appreciated.

Cheers
Allan
 
I'm not sure what you mean by "Convert the current time to milliseconds", but you may want to check out the DateDiff() cf function.

The reason I'm not sure as to what you mean, is due to the fact that when you convert a date to milliseconds, the date needs to be compared to another date. For example, today is March 25, 2003 1:06PM - if I wanted to convert that to milliseconds, I would have to define a start date. In other words, I'd have to define what date is 0 (zero) milliseconds.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top