课程: Java 8+ Essential Training: Objects and APIs

今天就学习课程吧!

今天就开通帐号,24,600 门业界名师课程任您挑!

Work with dates and times

Work with dates and times

- [Narrator] There are two completely different APIs for working with dates and times in Java, the original set of classes that were introduced with Java in the mid 1990s, and a completely new date time API that was introduced in Java eight known as the java dot time package. If you're working on, say, a Java Enterprise Edition application and you're working with the Java eight or Java nine runtime, then you can use the new API, but if you're working in older versions of Java, then you'll need to stick with the older classes, and if you're programming in Java to build Android apps, you'll find that the new java dot time tools are available only starting in Android eight, Oreo, the newest version of Android as of this recording. Unfortunately, that will only work if your Android app is limited to use on Android eight and higher, and as of this moment, that represents a tiny portion of the current Android device market. So, I'll show you examples of both types of code. The older set of…

内容