From e334c472fb4be44feec3a73402fc4a2b062cbfc0 Mon Sep 17 00:00:00 2001 From: admin Date: Sat, 21 Oct 2006 19:44:22 +0000 Subject: --- user_guide/helpers/date_helper.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (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 f787176a7..727ce5206 100644 --- a/user_guide/helpers/date_helper.html +++ b/user_guide/helpers/date_helper.html @@ -12,7 +12,7 @@ @@ -86,7 +86,7 @@ run a site that lets each user set their own timezone settings) there is no bene

mdate()

-

This function is identical to PHPs date() function, except that it lets you +

This function is identical to PHPs date() function, except that it lets you use MySQL style date codes, where each code letter is preceded with a percent sign: %Y %m %d etc.

The benefit of doing dates this way is that you don't have to worry about escaping any characters that @@ -142,7 +142,7 @@ $gmt = local_to_gmt($now);

gmt_to_local()

-

Takes a Unix timestamp (referenced to GMT) as input, and converts it to a localized timestamp based on the +

Takes a Unix timestamp (referenced to GMT) as input, and converts it to a localized timestamp based on the timezone and Daylight Saving time submitted. Example:

@@ -171,7 +171,7 @@ $unix = mysql_to_unix($mysql);

This can be useful if you need to display a date in a form field for submission.

-

The time can be formatted with or without seconds, and it can be set to European or US format. If only +

The time can be formatted with or without seconds, and it can be set to European or US format. If only the timestamp is submitted it will return the time without seconds formatted for the U.S. Examples: $now = time();
@@ -185,8 +185,8 @@ echo unix_to_human($now, TRUE, 'eu'); // Euro time with seconds

human_to_unix()

-

The opposite of the above function. Takes a "human" time as input and returns it as Unix. This function is -useful if you accept "human" formatted dates submitted via a form. Returns FALSE (boolean) if +

The opposite of the above function. Takes a "human" time as input and returns it as Unix. This function is +useful if you accept "human" formatted dates submitted via a form. Returns FALSE (boolean) if the date string passed to it is not formatted as indicated above. Example:

$now = time();
-- cgit v1.2.3-24-g4f1b