I have a task to create a program where the user gives the Hour, Minute, Second, then he gives another Hour, Minute, Second then the program should substract the second date from the first one.
I have been trying to not use the date format, but I can't get it to work.
The date has to be in a 24h format, and these two dates have to be in the same day. So if I write 12:59:59
then I couldn't set the second date to 12:59:58
just 13:00:00
.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…