hour, minute, second
These functions extract specific numeric info of the times. 0 is returned if the input value contains no recognizable time.
Function Name | Result |
---|---|
hour | hour 0-23 |
minute | minute 0-59 |
second | second 0-59 |
Indirect parameter passing is disabled
1
No. | Type | Description |
---|---|---|
1 input |
date or string converted to date | Date with time info Value to extract as described above |
Type | Description |
---|---|
numeral | Result Returned value as described above |
a[] = "14. July 2020, 15:30:40";
echo( hour( a[] ), ", ", minute( a[] ), ", ", second( a[] ) );
15, 30, 40