org.hibernate.search.util.impl

## Class TimeHelper

- java.lang.Object
- - org.hibernate.search.util.impl.TimeHelper

-     public final class TimeHelper
      extends Object

  Helpers for classes in java.time.*
  Author:
    Yoann Rodiere

- - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static ZonedDateTime` | `parseZoneDateTime(String value, DateTimeFormatter formatter)` Workaround for https://bugs.openjdk.java.net/browse/JDK-8066982, which at the moment has only been solved for JDK9.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### parseZoneDateTime

          public static ZonedDateTime parseZoneDateTime(String value,
                                                        DateTimeFormatter formatter)

      Workaround for https://bugs.openjdk.java.net/browse/JDK-8066982, which at the moment has only been solved for JDK9.

      Tested against TCKDTFParsedInstant in http://hg.openjdk.java.net/jdk9/dev/jdk/rev/f371bdfb7875 with both JDK8b101 and JDK9 (early access - build 137).

      Parameters:
        `value` - The value to be parsed
        `formatter` - The formatter to use when parsing
      Returns:
        The parsed `ZonedDateTime`

Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved