Forums Register Login

Comparing Timestamp values?

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
See this Link.
Scroll all the way to bottom to see some code.
Hope that helps
Krishna
+Pie Number of slices to send: Send
Hi Krishna,
Yes, this link was very helpful.
THANK YOU!!!
-- Mike
How do they get the deer to cross at the signs? Or to read this tiny ad?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 4433 times.
Similar Threads
Handling java.sql.Timestamp
Timestamp in GMT and the difference
Time Stamp values
Confused about SQL Timestamp
In-memory hashmap refresh in servlet
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 06:17:29.