diff options
Diffstat (limited to 'application/Utils.php')
-rw-r--r-- | application/Utils.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/application/Utils.php b/application/Utils.php index f84f70e4..aeaef9ff 100644 --- a/application/Utils.php +++ b/application/Utils.php | |||
@@ -72,12 +72,14 @@ function sanitizeLink(&$link) | |||
72 | 72 | ||
73 | /** | 73 | /** |
74 | * Checks if a string represents a valid date | 74 | * Checks if a string represents a valid date |
75 | |||
76 | * @param string $format The expected DateTime format of the string | ||
77 | * @param string $string A string-formatted date | ||
78 | * | ||
79 | * @return bool whether the string is a valid date | ||
75 | * | 80 | * |
76 | * @param string a string-formatted date | 81 | * @see http://php.net/manual/en/class.datetime.php |
77 | * @param format the expected DateTime format of the string | 82 | * @see http://php.net/manual/en/datetime.createfromformat.php |
78 | * @return whether the string is a valid date | ||
79 | * @see http://php.net/manual/en/class.datetime.php | ||
80 | * @see http://php.net/manual/en/datetime.createfromformat.php | ||
81 | */ | 83 | */ |
82 | function checkDateFormat($format, $string) | 84 | function checkDateFormat($format, $string) |
83 | { | 85 | { |