Skip to content

Add JSR 310 Period and Duration Converters [SPR-13721] #18294

Closed

Description

@spring-projects-issues

Phil Webb opened SPR-13721 and commented

Currently DateTimeConverters includes support for most javax.time types however it doesn't support javax.time.Period and javax.time.Duration. Both offer a parse static helper so it should be relatively easy to add them.


Affects: 4.2.3

Issue Links:

Referenced from: commits d5ca5b7

Activity

  1. spring-projects-issues commented on Nov 24, 2015

    @spring-projects-issues
    CollaboratorAuthor

    Juergen Hoeller commented

    Actually, DateTimeConverters just does between-type conversions, not rendering to a String or parsing from a String. So I'd rather do introduce these as PeriodFormatter and DurationFormatter, automatically registered next to our existing InstantFormatter.

    Juergen

  2. added this to the 4.2.4 milestone on Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

type: enhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions