Time Conversion

  • + 0 comments

    Java

    public static String timeConversion(String s) {
    
            return LocalTime.parse(s, DateTimeFormatter.ofPattern("hh:mm:ssa", Locale.US)).format(DateTimeFormatter.ofPattern("HH:mm:ss"));
    
        }