CreateTimeSpan()

Creates a timespan object that defines a time period.

The timespan object can be used with the cachedWithin attribute of cffunction, cfinclude, and cfquery.

CreateTimeSpan( days=number, hours=number, minutes=number, seconds=number, milliseconds=number );

Returns: timespan

Argument Description
days
number, required

number of days in time period

hours
number, required

number of hours in time period

minutes
number, required

number of minutes in time period

seconds
number, required

number of seconds in time period

milliseconds
number, optional

number of milliseconds in time period

Examples

dump(createTimeSpan(0,0,30,0)); // 30-minute timespan

See also