@nospamproxy/core
    Preparing search index...

    Class DurationInternal

    Index

    Constructors

    • Parameters

      • day: string = '0'
      • hour: string = '0'
      • minute: string = '0'
      • second: string = '0'

      Returns Duration

    Properties

    day: number
    hour: number
    minute: number
    second: number
    totalMilliseconds: number

    Methods

    • Formats the duration to HH:mm:ss string.

      Parameters

      • OptionalshowAtLeastOneSecond: boolean = true

        Whether or not to show at least one second if the duration is less than a second.

      Returns string

      HH:mm:ss-formatted string.