Tuesday Mar 25, 2014

Learn More About the Date-Time API

JDK 8 includes a new Date-Time API based on JSR 310. This API provides a comprehensive date-time model that enables you to represent dates and times and manipulate date and time values. It supports the International Organization for Standardization (ISO) calendar system as well as other commonly used global calendars. Classes in the java.time package replace the Date, Calendar, TimeZone, and DateFormat classes in the java.util package.

For information about the Date-Time API, see the following resources:

  • The Date-Time Trail of the Java Tutorial covers the classes based on the standard ISO calendar system, and includes information about migrating from the java.util date classes to the new java.time API.

  • The API documentation for the Date-Time API describes the classes and methods that are available.

  • The screencast A New Date and Time API - JSR 310 by Stephen Colebourne provides an overview of the API, explaining the core concepts and classes, and enables you to dive straight in when it is time to code.

  • Java 8 Launch has screencasts that describe the feature.

See What's New in JDK 8 for information about other new features in JDK 8.

Wednesday Sep 25, 2013

JavaOne 2013: Converting to the New Date-Time APIs

On Wednesday, September 25th, Xeuming Shen (Oracle), Roger Riggs (Oracle), and Stephen Colebourne (OpenGamma), gave a presentation entitled Converting to the New Date and Time API in JDK 8 [CON6091]. The new Date-Time APIs coming in the JDK 8 release provide an entirely new model for writing date and time code. This session focused on tips and techniques for converting date and time code that was written using the java.util classes, to the new java.time packages.

For more information on the new Date-Time APIs, see the new Date-Time trail in the Java Tutorial. The Legacy Date-Time Code page may be of special interest.

About

Blog about Java technology documentation and news about Java releases.

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today