Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to calculate hour difference between start time and end time

812390Jan 20 2011 — edited Jan 20 2011
Hello friends. i have my own defined time slots starts from morning 09:00 to 19:00

how to calculate the hour difference between particular hours?


the result should be in multiples of 30. because i have few rectangles same as ms outlook. time slots.

for example: if the time gap b/w 09:00 to 13:00 is 4 hours the rectangle height should be 120.

any relevant examples please?

Edited by: 809387 on Jan 20, 2011 9:14 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 17 2011
Added on Jan 20 2011
12 comments
217 views