• Convert time in ISO String, Date, milliseconds or seconds to human-readable format

    Parameters

    • input: number | String | Date

      ISO String, Date, milliseconds or seconds

    Returns string

    the human-readable format of the time

    if input is not a number, Date, or ISO string

    if input is a negative number

    if input is an invalid date string