View comments | RSS feed

GetHttpTimeString

Description

Gets the current time, in the Universal Time code (UTC).

Return value

The time, as a string, according to the HTTP standard described in RFC 1123.

Category

Date and time functions, International functions

Syntax

GetHttpTimeString(date_time_object)

See also

GetLocale, GetTimeZoneInfo, SetLocale

Parameters

Parameter Description
date_time_object
A ColdFusion date-time object string or Java Date object

Usage

The time in the returned string is UTC, consistent with the HTTP standard.

Example

<cfoutput>
#GetHttpTimeString("#Now()#")#<br>
</cfoutput>

ColdFusion 9 | ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | Bug Reporting

Version 6

Comments are no longer accepted for ColdFusion MX. ColdFusion 8 is the current version.

Comments


Swift said on Feb 22, 2005 at 9:28 AM :
Example output:

Tue, 22 Feb 2005 17:25:36 GMT

 

RSS feed | Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/coldfusion/6/CFML_Reference/functions-pt197.htm