codetrix - v1.5.0
    Preparing search index...

    Function getTimeParts

    • Returns an object containing hours, minutes, seconds, and milliseconds from a date.

      Parameters

      • date: Date

        The date object to extract time parts from.

      Returns TimeParts

      TimeParts object.

      getTimeParts(new Date(2025, 6, 23, 14, 30)); 
      // { hours: 14, minutes: 30, seconds: 0, milliseconds: 0 }