I am implementing a cache in a proxy server. I am storing Expires: field from the response of request and next time if same request comes then i will compare the Expires time with current time. Now I am stuck here. how should I convert Expire time format to seconds and then take a difference? Is that any other way to get time difference ?
Format for Expire time is :
Sat, 10 Nov 2012 07:05:26 GMT
Suppose I have two time, how can I compare two times in GMT?