3.7.07 Unix Timestamp in Coldfusion

This is simple to do - and horrifically useful when using Coldfusion in line with Unix servers and other Unix-based scripting languages…

<cfset jDate = createObject("java", "java.util.Date")>
<cfdump var="#jDate.getTime()#">

Download this code: cfmx-unix-timestamp

This should be self-explanitory - and useful. The Java core saves Coldfusion in the end AGAIN.


No comments




0.435s