True military time:
Format/Cells/Number/Custom hhmmssZ
Note that you can't directly enter that format, since XL requires a
colon to indicate time to the parser. You can leave off the time zone
indication for local time.
If you want the colon(s):
Format/Cells/Number/Custom hh:mm:ss