Checks if the given array is a valid time array.
A valid time array should have exactly 4 elements, each representing hours, minutes, seconds, and milliseconds respectively.
Parameters
array: number[]
The array to be checked.
Returns boolean
A boolean indicating whether the array is a valid time array.
Checks if the given array is a valid time array. A valid time array should have exactly 4 elements, each representing hours, minutes, seconds, and milliseconds respectively.