If you convert the date to a number, it will give you the number of days
since the ZERO DAY (an arbitrary day that is used to track future and
past times). This gives you a decimal value of days and fractions of a
day. Just multiple that by the number of seconds in a day:

(Now() * 24 * 60 * 60)

That should give you the number of seconds that have elapsed in since
the ZERO day.


......................
Ben Nadel
Certified Advanced ColdFusion MX7 Developer
www.bennadel.com
 
Need ColdFusion Help?
www.bennadel.com/ask-ben/

-----Original Message-----
From: Bosky, Dave [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 17, 2007 9:17 AM
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

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7
The most significant release in over 10 years. Upgrade & see new features.
http://www.adobe.com/products/coldfusion?sdid=RVJR

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

Reply via email to