
public class OLuceneDateTools
extends java.lang.Object
DateTools from Lucene code
base.
It uses the TimeZone defined at database level and maintains only methods
for string conversion to Date or long value.
| Modifier and Type | Class and Description |
|---|---|
static class |
OLuceneDateTools.Resolution
Specifies the time granularity.
|
| Modifier and Type | Method and Description |
|---|---|
static java.util.Date |
stringToDate(java.lang.String dateString)
Converts a string produced by
timeToString or dateToString back to a
time, represented as a Date object. |
static long |
stringToTime(java.lang.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. |
public static long stringToTime(java.lang.String dateString)
throws java.text.ParseException
timeToString or dateToString back to a
time, represented as the number of milliseconds since January 1, 1970, 00:00:00 GMT.dateString - the date string to be convertedjava.text.ParseException - if dateString is not in the expected formatpublic static java.util.Date stringToDate(java.lang.String dateString)
throws java.text.ParseException
timeToString or dateToString back to a
time, represented as a Date object.dateString - the date string to be convertedjava.text.ParseException - if dateString is not in the expected formatCopyright © 2013–2022 OrientDB. All rights reserved.