Hi, this is a friendly suggestion for a simple convenience method added to
ZonedDateTime that allows you to get the TimeZoneInterval represented by the
current state of the ZonedDateTime.
What situation does this request make simpler?
Consider you want to get the abbreviated name of the timezone interval in a
ZonedDateTime. The best I can come up with using the API is:
It doesn't feel right having to involve the two accesses to ZonedDateTime to
piece together something that ZonedDateTime already has the internal values to
know how to do.
Can you provide a straw-man example of what you'd want the API to look
This would be simpler if it could look like:
In my opinion, this would also aid in "self-documenting" and helping people
learn the API, just a tiny bit.
Please also see: http://stackoverflow.com/a/15959880/390906
I'm willing to submit a change if this receives architectural approval.
Original issue reported on code.google.com by BrandonLWhite on 16 Apr 2013 at 7:25