• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Time Stamp values

 
siva kumar
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to find the difference between the two Timestamp values in

Java.

I'm not finding good ways to find that
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use getTime() which returns the number of milliseconds from 01/01/70 00:00:00 GMT. You can subtract one timestamp from another this way, and the result is the number of milliseconds between the two.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic