CREATETIMESPAN

I l @ ve RuBoard

Used to create a date/time value that defines a span of time.

Syntax

 CreateTimeSpan(days, hours, minutes, seconds) 

Parameters

Days: Number of days (between 0-32768)

Hours: Number of hours

Minutes: Number of minutes

Seconds: Number of seconds

Example

 <!--- Cache a query for 30 minutes --->  <cfquery name="productlist" datasource="products"          cachedwithin="#CreateTimeSpan(0,0,30,0)#">   SELECT *   FROM tblProducts </cfquery> 
I l @ ve RuBoard


Macromedia ColdFusion 5. Training from the Source
Macromedia ColdFusion 5 Training from the Source (With CD-ROM)
ISBN: 0201758474
EAN: 2147483647
Year: 2002
Pages: 99
Authors: Kevin Schmidt

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net