📜  android java 格式化日期时间 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:07.390000             🧑  作者: Mango

代码示例3
import java.time.*;
import java.time.format.*;
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("HH:mm:ss");
LocalTime time = LocalTime.now();
String output = formatter.format(time);