Jump to content

Difference Between Two Time Values


TRI0N

Recommended Posts

Okay lets say I have these 2 time values.  time1 = 15:00:00 and time2 = 16:15:00

 

Now how would I go about getting the difference between the 2 so that I have a value of lets say 1.25 using the formula idea below:

var time_diff = time2 - time1;

 

Never worked with time differences in java yet so smack it to me.

Link to comment
https://forums.phpfreaks.com/topic/52485-difference-between-two-time-values/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.