25 public static function hour($timeValue)
30 if (!is_numeric($timeValue)) {
35 return $e->getMessage();
39 $timeValue = fmod($timeValue, 1);
40 $timeValue = SharedDateHelper::excelToDateTimeObject($timeValue);
42 return (
int) $timeValue->format(
'H');
59 public static function minute($timeValue)
64 if (!is_numeric($timeValue)) {
69 return $e->getMessage();
73 $timeValue = fmod($timeValue, 1);
74 $timeValue = SharedDateHelper::excelToDateTimeObject($timeValue);
76 return (
int) $timeValue->format(
'i');
93 public static function second($timeValue)
98 if (!is_numeric($timeValue)) {
103 return $e->getMessage();
107 $timeValue = fmod($timeValue, 1);
108 $timeValue = SharedDateHelper::excelToDateTimeObject($timeValue);
110 return (
int) $timeValue->format(
's');
static hour($timeValue)
HOUROFDAY.
static second($timeValue)
SECOND.
static minute($timeValue)
MINUTE.
static getTimeValue($timeValue)
getTimeValue.
static nullFalseTrueToNumber(&$number, bool $allowBool=true)
Many functions accept null/false/true argument treated as 0/0/1.
static validateNotNegative($number)
Many functions accept null/false/true argument treated as 0/0/1.
static flattenSingleValue($value='')
Convert an array to a single scalar value by extracting the first element.