Inside Coldfusion MX
CreateTimeSpan (days, hours, minutes, seconds) Description
Creates a date/time object that defines a time period. You can add or subtract it from other date/time objects and use it with the cachedWithin attribute of cfquery. Example
<cfset exampleTime = now()> <cfset timetoadd = CreateTimeSpan(0, 1, 12, 0)> <cfoutput> The new time is: #TimeFormat(Evaluate(exampleTime + timetoadd), 'hh:mm')# </cfoutput> |