📜  android 解析日期 - Java 代码示例

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

代码示例2
import java.time.*;
import java.time.format.*;
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("HH:mm:ss");
String input = "13:07:35";
LocalTime time = LocalTime.parse(input, formatter);