NightOwl888 opened a new pull request #580:
URL: https://github.com/apache/lucenenet/pull/580
### DateTools
- Added support for `TimeZoneInfo` when converting to/from string
- BREAKING: Added `NumericRepresentation` enum to allow converting to/from
long in the following formats:
- Unix Epoch (default): Milliseconds since Jan 1, 1970 12:00:00 AM UTC.
- Ticks: The raw ticks from `DateTime` or `DateTimeOffset`.
- Ticks as Milliseconds: This is for compatibility with prior versions of
Lucene.NET (3.0.3 and 4.8.0-beta00001 - 4.8.0-beta00015). The conversion done
on input values is `time * TimeSpan.TicksPerMillisecond` and the conversion to
output values is `time / TimeSpan.TicksPerMillisecond`.
- BREAKING: De-nested `Resolution` enum and renamed `DateResolution`.
### QueryParser
- `Lucene.Net.QueryParsers.Flexible.Standard.Config.NumberDateFormat`: Added
constructor overload to format a date without a time.
- `Lucene.Net.QueryParsers.Flexible.Standard.Config.NumberDateFormat`: Added
`NumericRepresentation` property to set the representation to use for both
`Format()` and `Parse()`.
- Added support for `TimeZoneInfo` when converting to/from string (Classic
and Flexible query parsers)
- BREAKING: `Lucene.Net.QueryParsers.Flexible.Standard`: Changed numeric
nodes to accept and return `J2N.Numerics` types instead of `object`.
- `Lucene.Net.QueryParsers.Classic.QueryParserBase: Use `TryParse()` instead
of `Parse()` to parse numeric values. Use the current culture, but fall back to
invariant culture.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]