I need some help in deducing time in a game.

The current time is (06:45:10)

I have two fleets that is send to attack a planet.

The first fleets arrival time is known (10:31:15) 24 hour format

The second fleets time to get to the target planet is known (01:58:58) flight duration.

I want to send the second fleet so that it will arrive at the same time at the target planet to do a combined attack. How do you add or subtract the time of the second fleet so that it will arrive at the same time?

Use two date time pickers to set the time values and display the second fleets send time in a label,when the second fleet should be send from current time.

The game runs in realtime.

Can Anyone be of assistance?

Thanks in Advance

6 Years
Discussion Span
Last Post by AndreRet

You can use the following to determine the time difference between your two dates -

Dim x As Date, y As Date, z As Date

x = Format("10:31:15", "hh:mm:ss")
y = Format("01:58:58", "hh:mm:ss")
z = x - y

Label1.Caption = z
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.