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
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
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
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
/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
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
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
]
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
: 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
~|
Create robust enterprise, web RIAs
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
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
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, 1970
12 matches
Mail list logo