This class also helps you to limit the resolution of your dates. Do not /// save dates with a finer resolution than you really need, as then /// RangeQuery and PrefixQuery will require more memory and become slower. /// ///
Compared to {@link DateField} the strings generated by the methods
/// in this class take slightly more space, unless your selected resolution
/// is set to Resolution.DAY
or lower.
///
yyyyMMddHHmmssSSS
or shorter,
/// depeding on resolution
/// yyyyMMddHHmmssSSS
or shorter,
/// depeding on resolution
; using UTC as timezone
/// timeToString
or
/// DateToString
back to a time, represented as the
/// number of milliseconds since January 1, 1970, 00:00:00 GMT.
///
/// dateString
is not in the timeToString
or
/// DateToString
back to a time, represented as a
/// Date object.
///
/// dateString
is not in the 2004-09-21 13:50:11
/// will be changed to 2004-09-01 00:00:00
when using
/// Resolution.MONTH
.
///
/// resolution
/// set to 0 or 1
/// 1095767411000
/// (which represents 2004-09-21 13:50:11) will be changed to
/// 1093989600000
(2004-09-01 00:00:00) when using
/// Resolution.MONTH
.
///
/// resolution
/// set to 0 or 1, expressed as milliseconds since January 1, 1970, 00:00:00 GMT
///