rpuig2001/CDM

Accepting custom entered time smaller than 4 digits

Closed this issue · 1 comments

What do you think of number padding with leading zeros, if a number smaller than 1000 is entered?
It would mean, that one only has to enter "933" instead of "0933" to start a calculation with zulu time 9:33 for example.

It is currently blocked by the length checks.
if (editedTOBT.length() == 4)
vs
if (editedTOBT.length() >= 1 && editedTOBT.length() <= 4)

This is a style/feature decision. I don't know, if it could produce some problems or maybe user misunderstandings on input vs output

If we are talking about input from user, It doesn't come to my mind any possible problem wich it may cause.
The important phase is to save the data with the correct format and length to the "slotList" and/or the Euroscope's flightstrip.

Thanks for your help,
Roger.