You are viewing a single comment's thread. Return to all comments →
java
if(s.charAt(8)=='A'){ if(Integer.parseInt(s.substring(0,2))==12){ return "00"+s.substring(2,8); } return s.substring(0, 8); }else{ if(Integer.parseInt(s.substring(0,2))==12){ return "12"+s.substring(2,8); } return (12+Integer.parseInt(s.substring(0,2))+s.substring(2,8)); }
Seems like cookies are disabled on this browser, please enable them to open this website
Time Conversion
You are viewing a single comment's thread. Return to all comments →
java