summaryrefslogtreecommitdiffstats
path: root/user_guide
diff options
context:
space:
mode:
Diffstat (limited to 'user_guide')
-rw-r--r--user_guide/general/changelog.html4
-rw-r--r--user_guide/helpers/date_helper.html31
2 files changed, 34 insertions, 1 deletions
diff --git a/user_guide/general/changelog.html b/user_guide/general/changelog.html
index 19366499d..1cac05dca 100644
--- a/user_guide/general/changelog.html
+++ b/user_guide/general/changelog.html
@@ -67,7 +67,7 @@ Change Log
<p>Release Date: Ocotber 15, 2006</p>
<ul>
-<li>Added <a href="../database/utilities.html">DB utility class</a>, permitting DB backups, generating CVS or XML files, and various other functions.</li>
+<li>Added <a href="../database/utilities.html">DB utility class</a>, permitting DB backups, CVS or XML files from DB results, and various other functions.</li>
<li>Added <a href="../database/caching.html">DB Caching class</a> permitting queries to be cached.</li>
<li>Added <a href="../database/transactions.html">transaction support</a> to the database classes.</li>
<li>Added relationship capability to the database active record class</li>
@@ -76,6 +76,8 @@ Change Log
<li>Added support for storing <a href="models.html">models within sub-folders</a>.</li>
<li>Added <a href="../helpers/download_helper.html">Download Helper</a>.</li>
<li>Added <a href="../database/queries.html">simple_query()</a> function to the database classes</li>
+<li>Added <a href="../helpers/date_helper.html">standard_date()</a> function to the Date Helper.</li>
+
<li>Added $query->free_result();</li>
<li>Added $query->field_names() function</li>
<li>Added $this->db->platform() function</li>
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>