InfoQ

News

JSR-310 Announced: Date and Time API

Posted by Rob Thornton on Feb 01, 2007 08:00 AM

Community
Java
Topics
JCP Standards
Tags
JSR 310 ,
Joda-Time

Stephen Colebourne has announced JSR 310, a new Date and Time API, to be based on Joda-Time and hopefully shipping in Java 7. As the JSR reads, the goal is to provide a more advanced and comprehensive model for date and time than those found in the Date and Calendar APIs.

Colebourne is the Project Lead for Joda-Time, and he states that while the JSR will be influenced by Joda-Time, it will not be a rubber stamp of it. Alex Miller lists some of the problems of the current API, from the perspective of working with JDBC drivers.

Colebourne has solicited input in a thread on JavaLobby. Some of the feedback that has already come in includes:

  • simplifying the API, at least for basic cases
  • lightweight and high performance (Calendar is slow)
  • integration with JDBC

The question of compatibility with existing Date and Calendar classes has also come up, with some saying it is necessary and others saying that at the most there should be a helper class for conversions.

This is welcome by Twice Tshwenyane Posted Feb 2, 2007 9:27 AM
Re: This is welcome by Martin Gilday Posted Feb 2, 2007 3:06 PM
  1. Back to top

    This is welcome

    Feb 2, 2007 9:27 AM by Twice Tshwenyane

    I think this is long overdue. Joda-Time is a very good library and we have suffered for so long at the hands of the JDK Date classes.

  2. Back to top

    Re: This is welcome

    Feb 2, 2007 3:06 PM by Martin Gilday

    As long as this includes good JDBC integration this should be a win for everyone. We have used joda-time almost exclusively but having to perform conversions to and from JDBC calls is awkward.

Educational Content

Bindings, Platforms, and Innovation

This presentation focuses on the Internet and separating myth from fact, history from the future, and the mundane from the imaginative. Bob Frankston presents a vision of what could and should be.

Orchestrating Long Running Activities with JBoss / JBPM

This article explores the use of JBoss and jBPM to implement design solutions that effectively address the issue of orchestrating long running activities.

Neo4j - The Benefits of Graph Databases

This presentation covers the use of graph databases as an optimal solution for data that is difficult to fit in static tables, rapidly evolving data or data that has a lot of optional attributes.

Realistic about Risk: Software development with Real Options

This session introduces Real Options and shows how it can help in running your project. Real Options is a decision-making process that can be used to manage risk.

Communication Flexibility Using Bindings

This article discusses the use of bindings on services and references (including the instance of non-configured bindings) as the means to implement SCA communications in a Web and SOA environment.

Writing DSLs in Groovy

After a short introduction to DSLs, Scott Davis plays with the keyboard showing how to approach the creation of a DSL by typing working snippets of Groovy code that get executed.

Scaling Agile with C/ALM (Collaborative Application Lifecycle Management)

IBM Rational and InfoQ present, Scaling Agile with C/ALM, an eBook showing organizations how to become “finely tuned software delivery machines” by enabling team integration and scaling.

Concurrent Programming with Microsoft F#

Amanda Laucher presents a real life enterprise application written in F#. She shows actual code snippets, explaining design decisions and suggesting how to use some of the F# constructs.