• Post Reply Bookmark Topic Watch Topic
  • New Topic

Time Difference  RSS feed

 
Sim Raina
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anybody know how to find difference between two times in hours
for ex 24:00:00 20:00:00 is 4 hours

thanks in advance
later
 
Ko Ko Naing
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have to change your time to be milliseconds and add/minus with the following value;
4(hours)*60(minutes)*60(seconds)*1000(milliseconds) = 14400000 milliseconds
Then u will get the different milliseconds and change it back to the time format that you want... Then you will get the time that is 4 hours different from your original time..
Hope it helps you....
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!