Vertex Viewer SDK
    Preparing search index...

    Function toProtoDuration

    • Converts the given milliseconds into a google.protobuf.Duration.

      Parameters

      • ms: number

        The milliseconds to convert.

      Returns Duration

    • Converts the two dates into a google.protobuf.Duration, where the duration is end - start. If end is before start, then the duration will be negative.

      Parameters

      • start: Date

        The starting time.

      • end: Date

        The ending time.

      Returns Duration