Answer:
5:00 pm -> 1700 hours
6:45 pm -> 1845 hours
8:05 am -> 0805 hours
12:59 am -> 0059 hours
0400 hours -> 4:00 am
1500 hours -> 3:00 pm
0010 hours -> 12:10 am
0240 hours -> 2:40 am
Explanation:
12:xx am -> 00xx
all times from 1:00 am to 9:59 am stay nearly the same 0100 to 0959
all times 10:00 am to 12:59 pm stay nearly the same 1000 to 1259
all times 01:00pm to 12:00pm + 12 -> 1300 to 2400