|
|
|
NAME
Caudium.cern_http_date()
SYNOPSIS string Caudium.cern_http_date(void|int t); AVAILABILITY
Caudium 1.3+
DESCRIPTION
Return the specified date (as returned by time()) fomated in the
common log file format, which is "DD/MM/YYYY:HH:MM:SS [+/-]TZTZ".
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 date in common log
format.
RETURNS
The date in the common log file format.
EXAMPLE Pike v7.4 release 1 running Hilfe v3.5 (Incremental Pike Frontend) > Caudium.cern_http_date(); (1) Result: "11/Dec/2002:00:35:57 -0100" > Caudium.cern_http_date(0); (2) Result: "01/Jan/1970:01:00:00 -0100" > Caudium.cern_http_date(time()); (3) Result: "11/Dec/2002:00:36:20 -0100" > Caudium.cern_http_date(time()-3600); (4) Result: "10/Dec/2002:23:36:35 -0100" |
|
Copyright © 2000 - 2005
The Caudium Group
All Rights Reserved. Hosting by Kazar.
|
|