From b4ccbbac11194053140fc1c0a091e511a0547038 Mon Sep 17 00:00:00 2001 From: Meritoo Date: Sat, 3 Nov 2018 08:10:03 +0100 Subject: [PATCH] Utilities > Date > update descriptions of methods --- src/Utilities/Date.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Utilities/Date.php b/src/Utilities/Date.php index 3b296b7..99293eb 100644 --- a/src/Utilities/Date.php +++ b/src/Utilities/Date.php @@ -572,10 +572,11 @@ class Date * @param mixed $value The value which maybe is a date * @param bool $allowCompoundFormats (optional) If is set to true, the compound formats used to create an * instance of DateTime class are allowed (e.g. "now", "last day of next - * month", "yyyy"). Otherwise - not and every incorrect value is refused. + * month", "yyyy"). Otherwise - not and every incorrect value is refused + * (default behaviour). * @param string $dateFormat (optional) Format of date used to verify if given value is actually a date. * It should be format matched to the given value, e.g. "Y-m-d H:i" for - * "2015-01-01 10:00" value. + * "2015-01-01 10:00" value. Default: "Y-m-d". * @return DateTime|bool */ public static function getDateTime($value, $allowCompoundFormats = false, $dateFormat = 'Y-m-d')