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

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
主站蜘蛛池模板: 昌江| 高雄市| 霍林郭勒市| 博兴县| 浦北县| 大同县| 民和| 庆城县| 台南市| 绥化市| 安岳县| 基隆市| 罗平县| 财经| 嵩明县| 襄汾县| 永登县| 陇川县| 宁明县| 阿荣旗| 濮阳县| 砚山县| 兰溪市| 西宁市| 固镇县| 张家界市| 泸州市| 略阳县| 大庆市| 罗定市| 额敏县| 秭归县| 六枝特区| 扎赉特旗| 宁海县| 延津县| 武胜县| 南川市| 梅州市| 茶陵县| 桐城市|