I'm working on a sample app which posts a string to server. I want to allow the user to post only two minutes after his previous post. I could do this on the server side but it might take long to get a response from the server when the user has a slow internet connection. So, I'm planning to do it on the client side(iPhone). I just want to compare the time between the current and previous post. Can anyone help me with saving time of the previous post. Sorry if anyone finds the question stupid.