Returns an object containing hours, minutes, seconds, and milliseconds from a date.
The date object to extract time parts from.
TimeParts object.
getTimeParts(new Date(2025, 6, 23, 14, 30)); // { hours: 14, minutes: 30, seconds: 0, milliseconds: 0 } Copy
getTimeParts(new Date(2025, 6, 23, 14, 30)); // { hours: 14, minutes: 30, seconds: 0, milliseconds: 0 }
Returns an object containing hours, minutes, seconds, and milliseconds from a date.