diff --git a/reference/datetime/functions/getdate.xml b/reference/datetime/functions/getdate.xml index d1bab19001..8301be5418 100644 --- a/reference/datetime/functions/getdate.xml +++ b/reference/datetime/functions/getdate.xml @@ -1,5 +1,5 @@ - + @@ -15,71 +15,90 @@ Returns an associative array containing the date information of the timestamp, or the current local time if - no timestamp is given, as the following array + no timestamp is given, as the following associative array elements: - - - - "seconds" - seconds - - - - - "minutes" - minutes - - - - - "hours" - hours - - - - - "mday" - day of the month - - - - - "wday" - day of the week, numeric : from 0 as Sunday up to 6 as Saturday - - - - - "mon" - month, numeric - - - - - "year" - year, numeric - - - - - "yday" - day of the year, numeric; i.e. "299" - - - - - "weekday" - day of the week, textual, full; i.e. "Friday" - - - - - "month" - month, textual, full; i.e. "January" - - - + + + + The following characters are recognized in the + <parameter>format</parameter> parameter string + + + + Key + Description + Example returned values + + + + + "seconds" + Numeric representation of seconds + 0 to 59 + + + "minutes" + Numeric representation of minutes + 0 to 59 + + + "hours" + Numeric representation of hours + 0 to 23 + + + "mday" + Numeric representation of the day of the month + 1 to 31 + + + "wday" + Numeric representation of the day of the week + 0 (for Sunday) through 6 (for Saturday) + + + "mon" + Numeric representation of a month + 1 through 12 + + + "year" + A full numeric representation of a year, 4 digits + Examples: 1999 or 2003 + + + "yday" + Numeric representation of the day of the year + 0 through 366 + + + "weekday" + A full textual representation of the day of the week + Sunday through Saturday + + + "month" + A full textual representation of a month, such as January or March + January> through December + + + +
+
+ <function>getdate</function> example ]]>