|
|
|
NAME
Caudium.http_date()
SYNOPSIS string Caudium.http_date(void|int t); AVAILABILITY
Caudium 1.3+
DESCRIPTION
Return the specified date (as returned by time()) fomated in the
HTTP-protocol standart date format, which is
"Day, DD MMM YYYY HH:MM:SS GMT". Time is recomputed to be shown in
GMT time according to the local configuration.
void|int t
The time in seconds since the 00:00:00 UTC, January 1, 1970. If this
argument is void, then the function returns the current date in
HTTP-protocol date format.
RETURNS
The date in the HTTP-protocol date format.
EXAMPLE Pike v7.4 release 1 running Hilfe v3.5 (Incremental Pike Frontend) > Caudium.http_date(); (1) Result: "Wed, 11 Dec 2002 18:06:16 GMT" > Caudium.http_date(0); (2) Result: "Thu, 01 Jan 1970 00:00:00 GMT" > Caudium.http_date(time()-3600); (3) Result: "Wed, 11 Dec 2002 17:06:43 GMT" |
|
Copyright © 2000 - 2005
The Caudium Group
All Rights Reserved. Hosting by Kazar.
|
|