Thanks for the help, now for some answers.

Rick:

I'm using CF ver: 7,0,0,91690
I don't know what version of JVM is intstalled I don't have admin access to
the box.

When I run your example code I get the same results for both lines of code.

I have noticed that the are still off from the Javascript code thats running
the same formula.

On 8/29/07, Rick Root <[EMAIL PROTECTED]> wrote:
>
> What version of coldfusion are you running?  If CF7 or below, what
> version of the JVM are you using?
>
> Run the following code and see what the output is:
>
> <cfset foo = now()>
> <cfoutput>#int((foo.getTime())/1000)#<br/></cfoutput>
> <cfoutput>#DateDiff("s", "January 1 1970 00:00", foo)#<br/></cfoutput>
> <script type="text/javascript">
> <cfoutput>var foo = Date.parse('#dateFormat(foo,'mmmm d, yyyy')#
> #timeFormat(foo,'HH:mm:ss')#');</cfoutput>
> document.writeln(foo/1000);
> </script>
>
> On my machine (CF8 on Windows), they produce the same results.
>
> Rick
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:287452
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