Which sentence is correct, specifically should it be 'of spending' or 'to spend'?<br/><br/>It was a great pleasure knowing you and having the opportunity 'of spending' great time with you.<br/><br/>It was a great pleasure knowing you and having the opportunity 'to spend' great time with you.<br/><br/>Thanks.