Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thread safe date format/parse API [SPR-2300] #6989

Closed
spring-projects-issues opened this issue Jul 13, 2006 · 3 comments
Closed

Thread safe date format/parse API [SPR-2300] #6989

spring-projects-issues opened this issue Jul 13, 2006 · 3 comments
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

Matt Magoffin opened SPR-2300 and commented

On many projects I deal with parsing/formatting dates and times, and with Spring have been very often injecting Apache's FastDateFormat to perform thread-safe date formatting as Format bean properties. But for date parsing, with SimpleDateFormat not being thread safe, there isn't a nice JDK API for performing thread-safe parsing.

I thought perhaps Spring could help with a simple date format/parse API, that could use Apache's FastDateFormat or Joda Time as different implementations for providing thread-safe formatting and parsing.


Attachments:

@spring-projects-issues
Copy link
Collaborator Author

Matt Magoffin commented

An example date format/parse API. The idea is that Spring can be used to configure application-specific implementations, as in many cases a single application will need to parse/format dates in a consistent manner (i.e. same pattern and same time zone applied).

@spring-projects-issues
Copy link
Collaborator Author

Matt Magoffin commented

Example implementation using Joda Time.

@spring-projects-issues
Copy link
Collaborator Author

Matt Magoffin commented

Example JUnit test case for JodaDataFormat.

@spring-projects-issues spring-projects-issues added type: enhancement A general enhancement in: core Issues in core modules (aop, beans, core, context, expression) labels Jan 10, 2019
@spring-projects-issues spring-projects-issues added this to the 3.0 RC2 milestone Jan 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

1 participant