Created
February 10, 2016 02:06
-
-
Save anonymous/3114ab628994d6d8d6df to your computer and use it in GitHub Desktop.
TryCF Gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
startTime = Now(); | |
sleep(3688); | |
endTime = Now(); | |
</cfscript> | |
<cfoutput> | |
start: #TimeFormat(startTime, 'HH:mm:ss L')#<br /> | |
end: #TimeFormat(endTime, 'HH:mm:ss L')#<br /> | |
<br /> | |
Duration: #dateDiff("s", startTime, endTime)# seconds<br /> | |
Duration: #dateDiff("n", startTime, endTime)# millseconds<br /><br /> | |
<!--- invalid call of the function dateDiff, third Argument (datePart) is invalid, invalid value [l], valid values has to be [q,s,n,h,d,m,y,yyyy,w,ww] ---> | |
</cfoutput> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment