Reputation: 883
The OAuth Spec says that the timestamp is expressed in the number of seconds since January 1, 1970 00:00:00 GMT. The timestamp value MUST be a positive integer and MUST be equal or greater than the timestamp used in previous requests.
I need it to us it my Android App to make an http post
Upvotes: 0
Views: 1073
Reputation: 409
You could use:
int authSeconds = (int)(new Date().getTime()/1000);
Upvotes: 0