Got this from cfhub.com
Name: CreateTimeSpan()
Usage: CreateTimeSpan(days, hours, minutes, seconds)
Description: Use CreateTimeSpan() to create a "time" object that can be added to or subtracted from another "time" object.
<!---
CreateTimeSpan(days, hours, minutes, seconds)
Use CreateTimeSpan() to create a "time" object that can
be added to or subtracted from another "time" object.
--->
<cfoutput>
This number represents a time-span of 2 hours:
#CreateTimeSpan(0,2,0,0)#<br><br>
This time-span can be added to
or subtracted from a date object<br>
<cfset TimeNow = Now()>
<cfset TheSpan = CreateTimeSpan(0,2,0,0)>
#TimeFormat(TimeNow + TheSpan)#<br>
#TimeFormat(TimeNow - TheSpan)#<br>
</cfoutput>
----- Original Message -----
From: Jordan Michaels
To: CF-Talk
Sent: Monday, July 12, 2004 3:54 PM
Subject: Adding to dates using CreateTimeSpan()
THe macromedia documentation for the CreateTimeSpan() function states
that it can be added and subtracted from other dates, however, I'm
unable to find any sample code that does this. Would someone mind
posting something that could be used as an example of this?
Thanks in advance.
--
Warm regards,
Jordan Michaels
Vivio Technologies
http://www.viviotech.net/
[EMAIL PROTECTED]
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
[Donations and Support]
- Re: StructKeyExists()... Sean Corfield
- Re: StructKeyExists()... Stephen Moretti (cfmaster)
- Re: StructKeyExists()... Matt Robertson
- Re: StructKeyExists()... Sean Corfield
- Re: StructKeyExists()... Sean Corfield
- Re: StructKeyExists()... Sean Corfield
- RE: StructKeyExists()... Spike
- Re: StructKeyExists()... Sean Corfield
- Re: StructKeyExists() vs IsDefined... Matt Robertson
- Adding to dates using CreateTimeSp... Jordan Michaels
- Re: Adding to dates using Crea... Bruce Sorge
- Re: Adding to dates using... Jordan Michaels
- Re: StructKeyExists() vs IsDefined() Jordan Michaels
- RE: StructKeyExists() vs IsDefined() Dawson, Michael
- RE: StructKeyExists() vs IsDefined() Barney Boisvert
- RE: StructKeyExists() vs IsDefined() Spike
- RE: StructKeyExists() vs IsDefined() Hugo Ahlenius
- Re: StructKeyExists() vs IsDefined() Mike Chabot