RosettaCodeData/Task/System-time/ColdFusion/system-time.cfm

12 lines
272 B
Text
Raw Permalink Normal View History

2017-09-23 10:01:46 +02:00
<cfscript>
// Date Time
currentTime = Now();
writeOutput( currentTime );
// Epoch
// Credit for Epoch time should go to Ben Nadel
// bennadel.com is his blog
utcDate = dateConvert( "local2utc", currentTime );
writeOutput( utcDate.getTime() );
</cfscript>