Paul,
I think this is the result that I am looking for. I just have one question.
When running this code I get the number that I am expecting and it works
fine for 'now()'
If I needed to submit my own date how would I do that?
For example:
If I wanted to see how many ms from 5/11/200 00:00:00?
Thanks again!!
Mallory Woods
On 8/30/07, Paul Hastings <[EMAIL PROTECTED]> wrote:
>
> Mallory Woods wrote:
> > I have question about CF and Epoch time.
>
> who's epoch? java (ms since 1-jan-1970)? unix (seconds since 1-jan-1970)?
> cf
> (decimal days since 31-dec-1899)?
>
> if you don't mind a little undocumented functionality to get the java
> epoch:
>
> <cfscript>
> now=now();
> javaEpoch=now.getTime();
> writeoutput("#now# ::: #javaEpoch#");
> </cfscript>
>
> if you need unix epoch, divide javaEpoch by 1000. if you want cf epoch:
>
> <cfscript>
> now=now();
> writeoutput("#now# ::: #decimalFormat(now)#");
> </cfscript>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:287453
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4