I have been playing around with DateUtils, but can't quite work out how to do this one.
The local trains leave every 15 minutes during the day.
E.g. the train to one town (Fremantle) leaves on the hour, then 15, 30 and 45 minutes past.
The train to another town leaves at 3 mins past, then 18, 33, 48
and so one.
So taking Fremantle as an example, at any time I want to simply display the number of minutes and seconds to the next train departure.
Any advice gratefully accepted.
The local trains leave every 15 minutes during the day.
E.g. the train to one town (Fremantle) leaves on the hour, then 15, 30 and 45 minutes past.
The train to another town leaves at 3 mins past, then 18, 33, 48
and so one.
So taking Fremantle as an example, at any time I want to simply display the number of minutes and seconds to the next train departure.
Any advice gratefully accepted.