Skip to content
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

Core: Add DateFormatter interface for java time parsing #33467

Merged

Commits on Sep 6, 2018

  1. Core: Add DateFormatter interface for java time parsing

    The existing approach used date formatters when a format based string
    like `date_time||epoch_millis` was used, instead of the custom code.
    
    In order to properly solve this, a new interface called
    `DateFormatter` has been added, which now can be implemented for custom
    formatters. Currently there are two implementations, one using java time
    and one doing the epoch_millis formatter, which simply parses a number
    and then converts it to a date in UTC timezone.
    
    The DateFormatter interface now also has a method to retrieve the name
    of the formatter, which is needed for mapping changes anyway.
    
    The existing `CompoundDateTimeFormatter` class has been removed, the
    name was not really nice anyway.
    
    One more minor change is the fact, that the new java time using
    FormatDateFormatter does not try to parse the date with its printer
    implementation first (which might be a strict one and fail), but a
    printer can now be specified in addition. This saves one potential
    failure/exception when parsing less strict dates.
    
    If only a printer is specified, the printer will also be used as a
    parser.
    spinscale committed Sep 6, 2018
    Configuration menu
    Copy the full SHA
    34aca34 View commit details
    Browse the repository at this point in the history
  2. add javadoc

    spinscale committed Sep 6, 2018
    Configuration menu
    Copy the full SHA
    1208deb View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    cb327eb View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    64de3c1 View commit details
    Browse the repository at this point in the history

Commits on Sep 7, 2018

  1. Configuration menu
    Copy the full SHA
    2eba303 View commit details
    Browse the repository at this point in the history
  2. reduce visibilities

    spinscale committed Sep 7, 2018
    Configuration menu
    Copy the full SHA
    cf1613b View commit details
    Browse the repository at this point in the history

Commits on Sep 8, 2018

  1. Configuration menu
    Copy the full SHA
    0950be9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b05fdce View commit details
    Browse the repository at this point in the history
  3. fix broken refactoring

    spinscale committed Sep 8, 2018
    Configuration menu
    Copy the full SHA
    754c884 View commit details
    Browse the repository at this point in the history

Commits on Sep 9, 2018

  1. Configuration menu
    Copy the full SHA
    bfa704e View commit details
    Browse the repository at this point in the history

Commits on Sep 14, 2018

  1. Configuration menu
    Copy the full SHA
    f778ae3 View commit details
    Browse the repository at this point in the history