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, hours, minutes, seconds [, milliseconds ] )

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