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

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
主站蜘蛛池模板: 无棣县| 涿州市| 耿马| 白玉县| 大渡口区| 鄱阳县| 运城市| 通州区| 江山市| 巨鹿县| 石阡县| 朝阳县| 清水河县| 达日县| 沅江市| 新余市| 理塘县| 南皮县| 红原县| 漳州市| 南靖县| 咸丰县| 神农架林区| 岳池县| 福鼎市| 越西县| 南华县| 阿克| 同德县| 白沙| 阿图什市| 中卫市| 金沙县| 尤溪县| 九台市| 搜索| 保定市| 武强县| 石嘴山市| 大庆市| 太白县|