public final class AttivioDateFormat extends Object
The parse(...)
methods will parse dates in the following formats:
NOTE: the parse methods will also parse the string "NOW" as a new Date with the current time.
Modifier and Type | Method and Description |
---|---|
static String |
format(Date date)
Format a date in "yyyy-MM-dd'T'HH:mm:ss" format.
|
static String |
formatMilliseconds(Date date)
Format a date in "yyyy-MM-dd'T'HH:mm:ss.SSS" format.
|
static String |
formatMillisecondsOptional(Date date)
Format a date in "yyyy-MM-dd'T'HH:mm:ss[.SSS]" format, with milliseconds only if specified.
|
static Date |
parse(CharSequence source)
Parses an Attivio Date value specified in UTC.
|
static Date |
parse(CharSequence source,
TimeZone timeZone)
Parses an Attivio Date value specified as
timeZone . |
static Date |
parse(Object value) |
static Date |
parse(String source)
Parses an Attivio Date value specified in UTC.
|
static Date |
parse(String source,
TimeZone timeZone)
Parses an Attivio Date value specified as
timeZone . |
static long |
parseMillis(CharSequence source,
TimeZone defaultTimeZone)
Parses an Attivio Date value specified as
timeZone into milliseconds since epoch. |
static boolean |
supportsFormat(String format)
Returns
true if the parse() method supports the specified date format . |
public static boolean supportsFormat(String format)
true
if the parse() method supports the specified date format
.public static String formatMilliseconds(Date date)
public static String formatMillisecondsOptional(Date date)
public static Date parse(CharSequence source)
public static Date parse(String source, TimeZone timeZone)
timeZone
.public static Date parse(CharSequence source, TimeZone timeZone)
timeZone
.public static long parseMillis(CharSequence source, TimeZone defaultTimeZone)
timeZone
into milliseconds since epoch.Copyright © 2018 Attivio, Inc. All Rights Reserved.
PATENT NOTICE: Attivio, Inc. Software Related Patents. With respect to the Attivio software product(s) being used, the following patents apply: Querying Joined Data Within A Search Engine Index: United States Patent No.(s): 8,073,840. Ordered Processing of Groups of Messages: U.S. Patent No.(s) 8,495,656. Signal processing approach to sentiment analysis for entities in documents: U.S. Patent No.(s) 8,725,494. Other U.S. and International Patents Pending.