Example usage for Java org.apache.lucene.document DateTools fields, constructors, methods, implement or subclass
The text is from its open source code.
String | dateToString(Date date, Resolution resolution) Converts a Date to a string suitable for indexing. |
Date | round(Date date, Resolution resolution) Limit a date's resolution. |
long | round(long time, Resolution resolution) Limit a date's resolution. |
Date | stringToDate(String dateString) Converts a string produced by timeToString or dateToString back to a time, represented as a Date object. |
long | stringToTime(String dateString) Converts a string produced by timeToString or dateToString back to a time, represented as the number of milliseconds since January 1, 1970, 00:00:00 GMT. |
String | timeToString(long time, Resolution resolution) Converts a millisecond time to a string suitable for indexing. |