From e8f6eb62a0600daf5b192746e1eed3e81516bc92 Mon Sep 17 00:00:00 2001 From: admin Date: Mon, 2 Oct 2006 06:46:16 +0000 Subject: --- user_guide/helpers/date_helper.html | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'user_guide/helpers/date_helper.html') diff --git a/user_guide/helpers/date_helper.html b/user_guide/helpers/date_helper.html index 44296dc84..420d891a6 100644 --- a/user_guide/helpers/date_helper.html +++ b/user_guide/helpers/date_helper.html @@ -100,6 +100,37 @@ echo mdate($datestring, $time);

If a timestamp is not included in the second parameter the current time will be used.

+

standard_date()

+ +

Lets you generate a date string in one of several standardized formats. Example:

+ + +$format = 'DATE_RFC822';
+$time = time();
+
+echo standard_date($format, $time); +
+ +

The first parameter must contain the format, the second parameter must contain the date as a Unix timestamp.

+ +

Supported formats:

+ + + + + +

local_to_gmt()

Takes a Unix timestamp as input and returns it as GMT. Example:

-- cgit v1.2.3-24-g4f1b