Skip to content

Conversation

@kartik-v
Copy link
Contributor

Summary of various enhancements incorporated:

  • normalizeDateTimeValue will parse, convert, and return a DateTime object for seamless usage across 32 bit, 64 bit systems or using within IntlDateFormatter.The DateTime object is supported for input & output across date values by 32 bit, 64 bit, as well as the IntlDateFormatter to format all date strings (including fixing of the Y2K38 bug). Fixes issue in Formatter crashes with fatal error on invalid date. #4989.
  • formatDateTimeValue will now read a DateTime object from above method for formatting as needed.
  • InvalidConfigException handling for date & time formatting to capture DateTime parsing errors.
  • asRelativeTime has been changed to reflect usage of DateTime object
  • asTimestamp has been changed to reflect usage of DateTime object
  • normalizeNumericValue now parses empty strings and returns a zero - so no exception is thrown.

Enhances `normalizeDateTimeValue` to return a DateTime object instead of a converted double value, that fails. The DateTime object input is supported by 32 bit, 64 bit, as well as the `IntlDateFormatter` to format all years. (including fixing of the Y2K38 bug). Fixes issue in #4989.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indentation?

@cebe
Copy link
Member

cebe commented Sep 12, 2014

could you please adjust unit tests to verify it is working correctly?

@cebe cebe added this to the 2.0 RC milestone Sep 12, 2014
@cebe cebe self-assigned this Sep 12, 2014
@kartik-v
Copy link
Contributor Author

Tests are failing for arbitrary formats. Will check and update on this.

@kartik-v
Copy link
Contributor Author

Necessary changes done. All current tests are now running fine.

@kartik-v kartik-v changed the title Better date parsing and formatting including 32 bit support Enhancements to Formatter for parsing dates & numbers Sep 14, 2014
@cebe cebe closed this in 18b57af Sep 23, 2014
@cebe
Copy link
Member

cebe commented Sep 23, 2014

Merged with some adjustments. Thanks!

@kartik-v kartik-v deleted the patch-3 branch November 17, 2014 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants