Java LocalTime convertLocalTimeToString(LocalTime time)

Here you can find the source of convertLocalTimeToString(LocalTime time)

Description

convert Local Time To String

License

Apache License

Declaration

public static String convertLocalTimeToString(LocalTime time) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.time.LocalTime;

import java.time.format.DateTimeFormatter;

public class Main {
    public static final String TIME_FORMAT = "HH:mm";

    public static String convertLocalTimeToString(LocalTime time) {
        DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern(TIME_FORMAT);
        return time.format(dateTimeFormatter);
    }/*from w w w  . j ava2  s  . co m*/
}

Related

  1. asDate(LocalTime localTime)
  2. currentTimeIsBetween(LocalTime from, LocalTime to)
  3. deserializeLocalTime(String date)
  4. fastTimeWrite(LocalTime localTime)
  5. getTimeDiff(LocalTime start, LocalTime end)