Re: Current time in seconds

2007-07-17 Thread Crow T. Robot
Seconds in reference to what? Since the beginning of time? The beginning of this year? This month, today? Five minutes ago? On 7/17/07, Bosky, Dave [EMAIL PROTECTED] wrote: Are there any date/time functions that will display the current date/time in seconds? Also a function to format the

Re: Current time in seconds

2007-07-17 Thread Christopher Jordan
Try DateFormat(); Chris On 7/17/07, Bosky, Dave [EMAIL PROTECTED] wrote: 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

RE: Current time in seconds

2007-07-17 Thread Andy Matthews
Not built in. But I'll bet you could find one on CFLib.org. And what do you mean by current time in seconds? Are you talking about like a unix timestamp? -Original Message- From: Bosky, Dave [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 17, 2007 8:17 AM To: CF-Talk Subject: Current

RE: Current time in seconds

2007-07-17 Thread Robert Harrrison
/or... It must be . -Original Message- From: Christopher Jordan [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 17, 2007 9:23 AM To: CF-Talk Subject: Re: Current time in seconds Try DateFormat(); Chris On 7/17/07, Bosky, Dave [EMAIL PROTECTED] wrote: Are there any date/time functions

RE: Current time in seconds

2007-07-17 Thread James Smith
cfset startTime = {ts '2007-07-01 00:00:00'} cfset nowTime = now() cfset seconds = dateDiff('s',startTime,nowTime) cfoutputp#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

RE: Current time in seconds

2007-07-17 Thread Bosky, Dave
Yeah. I was looking to get the current date/time in a unix timestamp format. I looked around cflib but didn't see anything. -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

RE: Current time in seconds

2007-07-17 Thread Ben Nadel
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)

RE: Current time in seconds

2007-07-17 Thread Peterson, Chris
Do dateDiff(s, 01/01/1997, now()) to give the seconds since Jan 1, 1997 (that date has no meaning, just a random date ;) Chris Peterson Gainey IT Adobe Certified Advanced Coldfusion Developer -Original Message- From: Bosky, Dave Sent: Tuesday, July 17, 2007 9:17 AM To: CF-Talk Subject:

RE: Current time in seconds

2007-07-17 Thread Andy Matthews
To: CF-Talk Subject: RE: Current time in seconds Yeah. I was looking to get the current date/time in a unix timestamp format. I looked around cflib but didn't see anything. -Original Message- From: Bosky, Dave [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 17, 2007 9:17 AM To: CF-Talk

Re: Current time in seconds

2007-07-17 Thread Paul Hastings
Bosky, Dave wrote: 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? if you mean unix offset: cfscript rightNow=now(); seconds=round(rightNow.getTime()/1000); /cfscript cfdump var=#seconds#

Re: Current time in seconds

2007-07-17 Thread James Wolfe
Are there any date/time functions that will display the current date/time in seconds? You can use the java date object to get whatever you want. You can use the following code to determine the number of milliseconds since since the standard base time known as the epoch, namely January 1,