public class Test { /** * java 判断一个时间是不是今天的时间范围内 * @param args */ public static void main(String[] args) { String time = "2017-09-27 11:20:45"; DateTimeFormatter dtf = DateTimeFormatter.ofPattern("uuuu-MM-dd HH:mm:ss"); LocalDateTime localTime = LocalDateTime.parse(time, dtf); LocalD
...全文