public class DateField
extends java.lang.Object
Date <-> String conversions in
a way that the resulting String is suitable for indexing and
sorting.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
MAX_DATE_STRING
Deprecated.
Returns 'zzzzzzzzz' -> something around 3189
|
static java.lang.String |
MIN_DATE_STRING
Deprecated.
Returns '000000000' -> something around 30 BC
|
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
dateToString(java.util.Date date)
Deprecated.
Converts a Date to a string suitable for indexing.
|
static java.util.Date |
stringToDate(java.lang.String s)
Deprecated.
Converts a string-encoded date into a Date object.
|
static long |
stringToTime(java.lang.String s)
Deprecated.
Converts a string-encoded date into a millisecond time.
|
static java.lang.String |
timeToString(long time)
Deprecated.
Converts a millisecond time to a string suitable for indexing.
|
public static final java.lang.String MIN_DATE_STRING
public static final java.lang.String MAX_DATE_STRING
public static java.lang.String dateToString(java.util.Date date)
public static java.lang.String timeToString(long time)
java.lang.IllegalArgumentException - if the given time is not
within the supported date range.public static long stringToTime(java.lang.String s)
public static java.util.Date stringToDate(java.lang.String s)
"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"