• Express a timestamp as a relative string

    Parameters

    • timeStamp: string | Date

      A timestamp string or Date object to be formatted as a relative time

    Returns string

    A string expression for the relative time