RosettaCodeData/Task/System-time/ColdFusion/system-time.cfm
2023-07-01 13:44:08 -04:00

11 lines
272 B
Text

<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>