summaryrefslogtreecommitdiffstats
path: root/user_guide/helpers/date_helper.html
diff options
context:
space:
mode:
Diffstat (limited to 'user_guide/helpers/date_helper.html')
-rw-r--r--user_guide/helpers/date_helper.html31
1 files changed, 31 insertions, 0 deletions
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);</code>
<p>If a timestamp is not included in the second parameter the current time will be used.</p>
+<h2>standard_date()</h2>
+
+<p>Lets you generate a date string in one of several standardized formats. Example:</p>
+
+<code>
+$format = 'DATE_RFC822';<br />
+$time = time();<br />
+<br />
+echo standard_date($format, $time);
+</code>
+
+<p>The first parameter must contain the format, the second parameter must contain the date as a Unix timestamp.</p>
+
+<p>Supported formats:</p>
+
+<ul>
+<li>DATE_ATOM</li>
+<li>DATE_COOKIE</li>
+<li>DATE_ISO8601</li>
+<li>DATE_RFC822</li>
+<li>DATE_RFC850</li>
+<li>DATE_RFC1036</li>
+<li>DATE_RFC1123</li>
+<li>DATE_RFC2822</li>
+<li>DATE_RSS</li>
+<li>DATE_W3C</li>
+</ul>
+
+
+
+
<h2>local_to_gmt()</h2>
<p>Takes a Unix timestamp as input and returns it as GMT. Example:</p>