import org.veyder.time.DateTime; import org.veyder.time.format.DateTimeFormatter; public class Main { public static void main(String[] args) { DateTime now = DateTime.now(); String formattedDate = DateTimeFormatter.ofPattern("yyyy-MM-dd").format(now); DateTime tomorrow = now.plusDays(1); String formattedTomorrow = DateTimeFormatter.ofPattern("yyyy-MM-dd").format(tomorrow); boolean isBefore = now.isBefore(tomorrow); } }


上一篇:
下一篇:
切换中文