Time Conversion

  • + 0 comments
    public static String timeConversion(String s) {
    // Write your code here
    
    return LocalTime.parse(s, DateTimeFormatter.ofPattern("hh:mm:ssa", Locale.US))
    .format(DateTimeFormatter.ofPattern("HH:mm:ss"));
    
    
    
    }