Commit 8a3e98ee authored by alexpott's avatar alexpott

Issue #2596043 by mpdonadio, pjonckiere: DrupalDateTime constructor claims to...

Issue #2596043 by mpdonadio, pjonckiere: DrupalDateTime constructor claims to support \DateTime object - it should not
parent 06b6497b
......@@ -440,7 +440,7 @@ public static function ampm($required = FALSE) {
* Identifies the number of days in a month for a date.
*
* @param mixed $date
* (optional) A date object, timestamp, or a date string.
* (optional) A DrupalDateTime object or a date string.
* Defaults to NULL, which means to use the current date.
*
* @return int
......@@ -460,7 +460,7 @@ public static function daysInMonth($date = NULL) {
* Identifies the number of days in a year for a date.
*
* @param mixed $date
* (optional) A date object, timestamp, or a date string.
* (optional) A DrupalDateTime object or a date string.
* Defaults to NULL, which means to use the current date.
*
* @return int
......@@ -485,7 +485,7 @@ public static function daysInYear($date = NULL) {
* Returns day of week for a given date (0 = Sunday).
*
* @param mixed $date
* (optional) A date object, timestamp, or a date string.
* (optional) A DrupalDateTime object or a date string.
* Defaults to NULL, which means use the current date.
*
* @return int
......@@ -505,7 +505,7 @@ public static function dayOfWeek($date = NULL) {
* Returns translated name of the day of week for a given date.
*
* @param mixed $date
* (optional) A date object, timestamp, or a date string.
* (optional) A DrupalDateTime object or a date string.
* Defaults to NULL, which means use the current date.
* @param string $abbr
* (optional) Whether to return the abbreviated name for that day.
......
......@@ -36,8 +36,7 @@ class DrupalDateTime extends DateTimePlus {
* Constructs a date object.
*
* @param string $time
* A DateTime object, a date/input_time_adjusted string, a unix timestamp.
* Defaults to 'now'.
* A date/input_time_adjusted string. Defaults to 'now'.
* @param mixed $timezone
* PHP DateTimeZone object, string or NULL allowed.
* Defaults to NULL.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment