Skip to content

Add getYearObj() to temporal classes #167

Description

@jodastephen

Consider providing a link to the Year class by adding getYearObj() or getYearType() methods to all ThreeTen-Extra classes where appropriate. Check for any other similar cases that could be improved.

Note that this can be done via temporal.query(Year::from) or Year.from(temporal) already, but they seem a touch unwieldy.

Originally suggested in #155.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions