ChartDirector Ver 4.1 (ColdFusion Edition)

Date/Time Specification


Many functions in the ChartDirector API accept dates/times as parameters. ChartDirector supports using ColdFusion date objects to represent dates. Note that ChartDirector uses real ColdFusion date objects, not "numeric dates" (ColdFusion dates convert to a number). If ChartDirector encounters a numeric date, it will just treat it as an ordinary number.

Internally, ChartDirector represents dates/times as the seconds elapsed since 1-1-0001 00:00:00. When ChartDirector encounters a ColdFusion date, it will automatically convert it to the internal format for processing.

Some ChartDirector utility functions, such as the RanTable random sequence generator, may output date/time in ChartDirector internal format. ChartDirector provides several functions ChartDirector.CFChart.CTime, ChartDirector.CFChart.CTime2, ChartDirector.CFChart.NTime and ChartDirector.CFChart.NTime2 that can be used to convert between ChartDirector's internal date format and ColdFusion date objects.