Javafx FormatTime

Slightly modified version of java2s‘s FormatTime function.

This because when there is a time formated greater then one hour, the seconds are not correctly subtracted.

For example :

Before :

  • 1:16:-3541

After:

  • 1:16:59