|
Quote:
|
|
how i would get the minutes here without declaring them before
|
Not sure what you are asking, unless its how to do arithmetic.
If you know the current time and the departure time, do the arithmetic to compute the hours and minutes between them. Hours are based 24 and minutes are based 60. Ie when incrementing minutes, roll over at 60 minutes to the next hour.
How is this a java programming question?