Greg Morphis wrote:
> if you use Tony's make sure you multiply your milliseconds by 1000 to
> get to seconds.
I would love to have you as a customer and bill you using that
math, but my customers only accept it when I devide by 1000.
Jochem
~~
Thanks for the help everyone it does seem as though it is epoch time. I have
never heard of that, but it does start on Jan 1, 1970 0:00:00.
Thanks again,
jim
~|
Find out how CFTicket can increase your company's customer support
if you use Tony's make sure you multiply your milliseconds by 1000 to
get to seconds.
On 4/27/05, Tony Weeg <[EMAIL PROTECTED]> wrote:
> Prolly epoch time, seconds since jan 1 1970?
>
> and sure, you can do that.
>
> 00:00:00.000')>
>
> tw
>
> On 4/27/05, Bryan Stevenson <[EMAIL PROTECTED]> w
nada barney
Could not convert the value 1.10838972E12 to an integer because it
cannot fit inside an integer.
On 4/27/05, Barney Boisvert <[EMAIL PROTECTED]> wrote:
> If you're on CF7, give this a whirl:
>
> #createObject("java", "java.util.Date").init(javaCast("long", 110838972))#
>
> On CF
> Jim...milliseconds are not a date...just a measure of time.
Actually, it's common to use a number as a date, based on some starting
time. For example, Unix date values use the number of seconds since 1
January 1970.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
Fig Leaf Software
yself.
M!ke
-Original Message-
From: Jim Rathmann [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 27, 2005 12:22 PM
To: CF-Talk
Subject: Convert Milliseconds to Date/Time
I have a question that I am not sure if ColdFusion can calculate. Is
there any way to convert a Date/Time field that
Prolly epoch time, seconds since jan 1 1970?
and sure, you can do that.
tw
On 4/27/05, Bryan Stevenson <[EMAIL PROTECTED]> wrote:
> Jim...milliseconds are not a date...just a measure of time.
>
> Now if you have a start date and are adding milliseconds to that date...then
> you're making sen
If you're on CF7, give this a whirl:
#createObject("java", "java.util.Date").init(javaCast("long", 110838972))#
On CF6.1 it doesn't work, because CF insists on using an int for the
value, which it overflows. CF7 might be different.
cheers,
barneyb
On 4/27/05, Jim Rathmann <[EMAIL PROTECTED
Jim...milliseconds are not a date...just a measure of time.
Now if you have a start date and are adding milliseconds to that date...then
you're making sense ;-)
Let us know what the situation is
Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc
I have a question that I am not sure if ColdFusion can calculate. Is there any
way to convert a Date/Time field that is in Milliseconds to a readable
Date/Time using ColdFusion? You can do it using the following JavaScript:
var theDateObj = new Date(parseFloat(110838972));
var d = theDateObj
10 matches
Mail list logo