This commit is contained in:
Xes
2025-08-14 22:37:50 +02:00
parent fb6d5d5926
commit 3641e93527
9156 changed files with 1813532 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
<?php
/* For licensing terms, see /license.txt */
/**
* Class DateTimeRule.
*
* @author Julio Montoya
*/
class DateTimeRule extends HTML_QuickForm_Rule
{
/**
* Check a date.
*
* @param string $date example 2014-04-30 18:00
* @param array $options
*
* @return bool True if date is valid
*
* @see HTML_QuickForm_Rule
*/
public function validate($date, $options)
{
return api_is_valid_date($date, 'Y-m-d H:i');
}
}