| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final SmallLRUCache | |
| public static final int | FORMATDATETIME
FORMATDATETIME() (non-standard). |
| private final int | |
| private static final String[] | |
| public static final int | PARSEDATETIME
PARSEDATETIME() (non-standard). |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static String | Returns: the formatted datethe session session, Value the date to format date, String the format string format, String the locale locale, String the time zone timeZone)Formats a date using a format string. |
| private static DateTimeFormatFunction. | |
| public String | |
| private static ZoneOffset | |
| public Value | getValue(SessionLocal
the session session, Value the value of first argument, or v1, Value nullthe value of second argument, or v2, Value nullthe value of third argument, or v3)nullOverrides org. Returns the value of this function. |
| private static ZoneId | |
| public Expression | optimize(SessionLocal
the session session)Implements abstract org. Try to optimize the expression. |
| public static ValueTimestampTimeZone | Returns: the parsed datethe session session, String the date to parse date, String the parsing format format, String the locale locale, String the time zone timeZone)Parses a date using a format string. |
| CACHE | back to summary |
|---|---|
| private static final SmallLRUCache<DateTimeFormatFunction. | |
| FORMATDATETIME | back to summary |
|---|---|
| public static final int FORMATDATETIME FORMATDATETIME() (non-standard). | |
| function | back to summary |
|---|---|
| private final int function | |
| NAMES | back to summary |
|---|---|
| private static final String[] NAMES | |
| PARSEDATETIME | back to summary |
|---|---|
| public static final int PARSEDATETIME PARSEDATETIME() (non-standard). | |
| DateTimeFormatFunction | back to summary |
|---|---|
| public DateTimeFormatFunction(int function) | |
| formatDateTime | back to summary |
|---|---|
| public static String formatDateTime(SessionLocal session, Value date, String format, String locale, String timeZone) Formats a date using a format string. | |
| getDateFormat | back to summary |
|---|---|
| private static DateTimeFormatFunction. | |
| getName | back to summary |
|---|---|
| public String getName() Implements org. Doc from org. Get the name. | |
| getTimeOffset | back to summary |
|---|---|
| private static ZoneOffset getTimeOffset(ZoneId zoneId, String timeZone) | |
| getValue | back to summary |
|---|---|
| public Value getValue(SessionLocal session, Value v1, Value v2, Value v3) Overrides org. Doc from org. Returns the value of this function. | |
| getZoneId | back to summary |
|---|---|
| private static ZoneId getZoneId(String timeZone) | |
| optimize | back to summary |
|---|---|
| public Expression optimize(SessionLocal session) Implements abstract org. Doc from org. Try to optimize the expression.
| |
| parseDateTime | back to summary |
|---|---|
| public static ValueTimestampTimeZone parseDateTime(SessionLocal session, String date, String format, String locale, String timeZone) Parses a date using a format string.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final String | |
| private final String |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. Indicates whether some other object is "equal to" this one. |
| public int |
| format | back to summary |
|---|---|
| private final String format | |
| locale | back to summary |
|---|---|
| private final String locale | |
| timeZone | back to summary |
|---|---|
| private final String timeZone | |
| CacheKey | back to summary |
|---|---|
| pack-priv CacheKey(String format, String locale, String timeZone) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final DateTimeFormatter | |
| pack-priv final ZoneId |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| formatter | back to summary |
|---|---|
| pack-priv final DateTimeFormatter formatter | |
| zoneId | back to summary |
|---|---|
| pack-priv final ZoneId zoneId | |
| CacheValue | back to summary |
|---|---|
| pack-priv CacheValue(DateTimeFormatter formatter, ZoneId zoneId) | |