Really short 'didn't know you could do that' moment.
Playing around with createTimeSpan() today in a little test bed, and gave this a try and it worked –
<cfscript>
now = now();
dts = createTimeSpan(0,2,0,0);
then = now + dts;
</cfscript>
<cfoutput>
#TimeFormat(Now(), "HH:mm:ss")# : #TimeFormat(then, "HH:mm:ss")#
</cfoutput>
And look at that, that just added 2 hours to the time.
Normally I would have done that with a dateAdd(), but this actually quite quick.
Comments
You can actually save yourself a cf call by using values that correspond to createTimeSpan:
http://succor.co.uk/index.cfm/2006/4/13/save-the-createTimeSpan-function-call
What a silly method… it must be for people that don’t know how many seconds there are in a minute, minutes in an hour and hours a day 😛