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.

2 comments

Reply

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.

Exclusive Content

Dan Farino About MySpace’s Architecture

Dan Farino talks about the system architecture and the challenges faced when building a very large online community. Dan explains how a .NET product scales on hundreds of servers.

The Maxine VM

Bernd Mathiske discusses Maxine VM, Java compatibility, swapping major VM components, research areas, Object handling, code examples, optimizing compiler, snippets, bytecode generation, JNI and JIT.

Joe Armstrong About Erlang

Joe Armstrong speaks on various aspects of the Erlang language, presenting its roots, how it compares with other languages and why it has become popular these days.

The Limits of Code Optimization: a new Singleton Pattern Implementation

The java double-check singleton pattern is not thread safe and can’t be fixed. In this article, Dr. Alexey Yakubovich provides an implementation of the Singleton pattern that he claims is thread-safe.

Pressure and Performance – The CTO's Dilemma

Diana and Jim talk about patterns observed in CTOs' activity. CTOs emerge as real people caring for other people in their organization, and are put under a lot of pressure and constraints.

Biztalk Services in the Cloud

Cloud computing feels like a tomorrow technology. Simon Thurman shows how developers can use Biztalk to create an Internet Service Bus which can be deployed locally or in the cloud.

Java FX Technology Preview

InfoQ takes a look at the JavaFX preview build and talks to Sun Staff Engineer Joshua Marinacci about the upcoming version 1 release expected this autumn.

Jeff Sutherland: Reaching Hyper-Productivity with Outsourced Development Teams

Jeff Sutherland, co-creator of Scrum, and Guido Schoonheim, CTO of Xebia, present an actual case of reaching hyper-productivity with a large distributed team using XP and Scrum.