Function secondsToExpiry

  • Get seconds to expiry time

    Parameters

    • expiry: number

      seconds to expiry

    • shouldRound: boolean

      should round the return value

    Returns number

    total seconds to expiry