Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+8 votes
asked in CSC305 Fall 2021 by (1 point)

2 Answers

+1 vote

If your input is of string type. Just slice it. However, if the type is of type Time or something, I'm not sure but you can try getting the content from the time (it may be returned as a string)

answered by (1 point)
+1 vote

I would also just manipulate the string the separate the hour and minutes. That is what my group did and everything worked out fine.

answered by (1 point)
...