WebSpeed
Developer’s Guide


Managing Date and Time Information

The functions listed in Table 5–8 convert dates and times between local and UTC time, and format dates and times for different types of Web output.

Table 5–8: Date and Time API Functions 
Function
Return Type
Description
convert-datetime
CHARACTER
(Blank, " “)
Inputs a conversion option, a date specified with the SpeedScript DATE data type, and a time specified as the number of seconds since midnight (see the SpeedScript TIME function). Outputs the date and time converted from local time to UTC, from UTC to local time, or normalized to have a legal number of seconds in a day. (Conversion normalizes the seconds for output by default.)
format-datetime
CHARACTER
Formats and returns a date and time for Web use. Supported formats include "COOKIE" and "HTTP". The "COOKIE" format is useful for setting cookie expiration dates. The "HTTP" format is useful for dates in HTTP headers. Options also convert the date and time from local to UTC and normalize the result before formatting.

The definitions for these functions reside in install-path/src/web/method/cgiutils.i.


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095