<cfset startTime = "{ts '2007-07-01 00:00:00'}">
<cfset nowTime = now()>
<cfset seconds = dateDiff('s',startTime,nowTime)>
<cfoutput><p>#seconds#<br />#dateAdd('s',seconds,startTime)#</p></cfoutput>

--
Jay

-----Original Message-----
From: Bosky, Dave [mailto:[EMAIL PROTECTED] 
Sent: 17 July 2007 14:17
To: CF-Talk
Subject: Current time in seconds

Are there any date/time functions that will display the current
date/time in seconds?
Also a function to format the seconds back to readable format?

Thanks,
Dave

**********************************************************************
HTC Disclaimer:  The information contained in this message may be privileged
and confidential and protected from disclosure. If the reader of this
message is not the intended recipient, or an employee or agent responsible
for delivering this message to the intended recipient, you are hereby
notified that any dissemination, distribution or copying of this
communication is strictly prohibited.  If you have received this
communication in error, please notify us immediately by replying to the
message and deleting it from your computer.  Thank you.
**********************************************************************




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion MX7 by AdobeĀ®
Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. 
Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283859
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to