官术网_书友最值得收藏!

Date Calculator

With the release of Java 8, Oracle integrated a new library based on a redesign of Joda Time, more or less, into the JDK. Officially known as JSR 310, this new library fixed a longstanding complaint with the JDK--the official date libraries were inadequate and hard to use. In this project, we'll build a simple command-line date calculator that will take a date and, for example, add an arbitrary amount of time to it. Consider the following piece of code for example:

$ datecalc "2016-07-04 + 2 weeks" 
2016-07-18 
$ datecalc "2016-07-04 + 35 days" 
2016-08-08 
$ datecalc "12:00CST to PST" 
10:00PST 

This project will cover the following:

  • Java 8 Date/Time APIs
  • Regular expressions
  • Java command-line libraries
主站蜘蛛池模板: 兴城市| 定结县| 全椒县| 哈巴河县| 卓资县| 汾阳市| 乌苏市| 孝感市| 井冈山市| 河西区| 酒泉市| 东兰县| 霸州市| 比如县| 黄梅县| 卓资县| 十堰市| 和硕县| 开封市| 南昌县| 额济纳旗| 桂平市| 德令哈市| 福泉市| 淮安市| 寿光市| 杂多县| 扎兰屯市| 侯马市| 汉寿县| 平原县| 靖西县| 荣成市| 台东县| 汽车| 汉沽区| 壤塘县| 洞口县| 通化市| 兴国县| 万安县|