• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Comparing Timestamp values?

 
Mike London
Ranch Hand
Posts: 1185
4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do you compare two Timestamp values to see if one is 'x' minutes older than another, for example?
If you have one Timestamp, say t1 and another, t2, how can you see if the difference in time between them is, say 5 minutes?
Basically, I need to be able to somehow take the difference between to Timestamps to see how much time has elapsed.
From looking at the API, there doesn't seem to be a simple way to do this.
Any help or advice would be appreciated.
Thanks!
-- Mike
 
Krishna Mohan
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See this Link.
Scroll all the way to bottom to see some code.
Hope that helps
Krishna
 
Mike London
Ranch Hand
Posts: 1185
4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Krishna,
Yes, this link was very helpful.
THANK YOU!!!
-- Mike
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic