摘要: 1. LocalDate -> MinguoDate Review a full example to convert a LocalDate to MinguoDate TestMinguoDate.java Copy Copy Output 阅读全文
posted @ 2018-12-22 19:17 BloggerSb 阅读(642) 评论(0) 推荐(0)
摘要: 1. TemporalAdjusters Example to move a date to firstDayOfMonth, firstDayOfNextMonth, next Monday and etc. TestDate.java Copy Copy Output Copy Copy Not 阅读全文
posted @ 2018-12-22 19:14 BloggerSb 阅读(756) 评论(0) 推荐(0)
摘要: 1. Calendar.add Example to add 1 year, 1 month, 1 day, 1 hour, 1 minute and 1 second to the current date. DateExample.java Copy Copy Output 2. Java 8 阅读全文
posted @ 2018-12-22 19:11 BloggerSb 阅读(378) 评论(0) 推荐(0)
摘要: Copy Copy Output 阅读全文
posted @ 2018-12-22 19:09 BloggerSb 阅读(260) 评论(0) 推荐(0)
摘要: Few examples to show you how to use Java 8 Duration, Period and ChronoUnit objects to find out the difference between dates. 1. Duration Example A jav 阅读全文
posted @ 2018-12-22 19:06 BloggerSb 阅读(504) 评论(0) 推荐(0)