summaryrefslogtreecommitdiffstats
path: root/user_guide_src
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-06-15 15:13:17 +0200
committerAndrey Andreev <narf@bofh.bg>2012-06-15 15:13:17 +0200
commitc275b23b06195e4ea6424d96a0c76b825c71443a (patch)
tree746591143cb29a6b400fac44def01ae1312b139f /user_guide_src
parentd9b44bef948928739b2b96b43d78b7629c0ccc15 (diff)
Fix nice_date() documentation
Diffstat (limited to 'user_guide_src')
-rw-r--r--user_guide_src/source/helpers/date_helper.rst12
1 files changed, 7 insertions, 5 deletions
diff --git a/user_guide_src/source/helpers/date_helper.rst b/user_guide_src/source/helpers/date_helper.rst
index 1b7177fc2..b6dc2e934 100644
--- a/user_guide_src/source/helpers/date_helper.rst
+++ b/user_guide_src/source/helpers/date_helper.rst
@@ -247,16 +247,18 @@ Example
::
- $bad_time = 199605 // Should Produce: 1996-05-01
- $better_time = nice_date($bad_time,'Y-m-d');
- $bad_time = 9-11-2001 // Should Produce: 2001-09-11
- $better_time = nice_date($human,'Y-m-d');
+ $bad_date = '199605';
+ // Should Produce: 1996-05-01
+ $better_date = nice_date($bad_date, 'Y-m-d');
+
+ $bad_date = '9-11-2001';
+ // Should Produce: 2001-09-11
+ $better_date = nice_date($bad_date, 'Y-m-d');
timespan()
==========
Formats a unix timestamp so that is appears similar to this
-
::
1 Year, 10 Months, 2 Weeks, 5 Days, 10 Hours, 16 Minutes