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

Parsable standard formats for ZonedDateTimePattern #277

Closed
GoogleCodeExporter opened this Issue Mar 15, 2015 · 1 comment

Comments

Projects
None yet
2 participants
@GoogleCodeExporter

GoogleCodeExporter commented Mar 15, 2015

Currently we have the "G" and "F" standard patterns for ZonedDateTime, but they 
don't allow parsing - because they use 
ZonedDateTime.GeneralFormatOnlyIsoPattern and 
ZonedDateTime.ExtendedFormatOnlyIsoPattern, which don't know which time zone 
provider to use.

However, they could easily be tweaked such that if a time zone provider *is* 
available, we use it. So then we could use:

    var pattern = ZonedDateTimePattern.CreateWithInvariantCulture("F", DateTimeZoneProviders.Bcl);

for example.

Original issue reported on code.google.com by jonathan.skeet on 12 Apr 2014 at 8:00

@GoogleCodeExporter

This comment has been minimized.

GoogleCodeExporter commented Mar 15, 2015

This issue was closed by revision 995f2844508a.

Original comment by jonathan.skeet on 12 Apr 2014 at 8:26

  • Changed state: Fixed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment