public final class ElasticsearchDateHelper extends Object
Modifier and Type | Method and Description |
---|---|
static String |
calendarToString(Calendar calendar) |
static String |
dateToString(Date date) |
static Calendar |
round(Calendar calendar,
org.apache.lucene.document.DateTools.Resolution resolution)
Limit a calendar resolution.
|
static Calendar |
stringToCalendar(String value) |
static Date |
stringToDate(String value) |
public static Calendar round(Calendar calendar, org.apache.lucene.document.DateTools.Resolution resolution)
resolution
- The desired resolution of the date to be returnedresolution
set to 0 or 1DateTools.round(Date, Resolution)
Copyright © 2006–2017 Hibernate. All rights reserved.