import org.joda.time.DateTime; import org.fest.assertions.joda.JodaTimeAssertions; public class Main { public static void main(String[] args) { DateTime now = DateTime.now(); DateTime tomorrow = now.plusDays(1); JodaTimeAssertions.assertThat(now) .isBefore(tomorrow) .isEqualToIgnoringMillis(now.withTime(0, 0, 0, 0)); } }


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