public class MXNFormat
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
ALN |
static char |
AMCHAR |
static int |
AMOUNT |
static int |
BIGINT |
static int |
BLOB |
static int |
CLOB |
static int |
CRYPTO |
static int |
CRYPTOX |
static int |
DATE |
static java.lang.String |
DATESEP |
static int |
DATETIME |
static char |
DAYCHAR |
static int |
DECIMAL |
static int |
DURATION |
static int |
FLOAT |
static int |
GL |
static char[] |
HEXDIGITS
A table of hex digits
|
static char |
HOUR12CHAR |
static char |
HOUR24CHAR |
static int |
INTEGER |
static int |
LONGALN |
static int |
LOWER |
static char |
MINCHAR |
static double |
MINSPERHOUR |
static char |
MONTHCHAR |
static char |
SECONDCHAR |
static java.lang.String |
SEPERATORS |
static int |
SMALLINT |
static java.lang.String |
SPECIALSAVECHARS
A string consisting of characters that should be preceded by a slash
|
static int |
TIME |
static java.lang.String |
TIMESEP |
static java.lang.String[] |
TYPEASSTRING |
static int |
UDTYPE |
static int |
UNLIMITEDPLACES |
static int |
UPPER |
static char |
YEARCHAR |
static int |
YORN |
Constructor and Description |
---|
MXNFormat() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
dateTimeToParseString(java.util.Date d)
Convert a date to a parse date time string using the default ULocale and time zone
|
static java.lang.String |
dateTimeToParseString(java.util.Date d,
com.ibm.icu.util.ULocale l)
Convert a date to a parse datetime string using the specified locale and default time zone.
|
static java.lang.String |
dateTimeToParseString(java.util.Date d,
com.ibm.icu.util.ULocale l,
com.ibm.icu.util.TimeZone tz)
Convert a date to a parse datetime string using the specified locale and time zone.
|
static java.lang.String |
dateTimeToSQLString(java.util.Date d)
Convert a date to date time string of format yyyy-MM-dd HH:mm:ss for use
in database queries.
|
static java.lang.String |
dateTimeToString(java.util.Date d)
Convert a date to a date time string using the default locale and time zone
|
static java.lang.String |
dateTimeToString(java.util.Date d,
com.ibm.icu.util.ULocale l)
Convert a date to a datetime string using the specified locale and default time zone.
|
static java.lang.String |
dateTimeToString(java.util.Date d,
com.ibm.icu.util.ULocale l,
java.util.TimeZone tz)
Convert a date to a datetime string using the specified locale and time zone.
|
static java.lang.String |
dateToSQLString(java.util.Date d)
Convert a date to date time string of format yyyy-MM-dd for use
in database queries.
|
static java.lang.String |
dateToString(java.util.Date d)
Convert a date to a string using the default ULocale and time zone.
|
static java.lang.String |
dateToString(java.util.Date d,
com.ibm.icu.util.ULocale l)
Convert a date to string using the specidied ULocale and default time zone
|
static java.lang.String |
dateToString(java.util.Date d,
com.ibm.icu.util.ULocale l,
java.util.TimeZone tz)
Convert a date to a string using the specified ULocale and time zone.
|
static java.util.Date |
getDateOnly(java.util.Date date)
Set time portion of passed date to 00:00:00
|
static int[] |
parseDateTime(java.lang.String s,
com.ibm.icu.util.ULocale l,
java.lang.String pattern)
Break a date, datetime or time string into constituent parts.
|
static void |
setSettingProp(java.lang.String propName,
java.lang.String propValue)
Save a value for setting property.
|
static java.util.Date |
stringToDate(java.lang.String s)
Convert a string to a date using the default locale amd default time zone
|
static java.util.Date |
stringToDate(java.lang.String strDate,
java.lang.String strFormat)
Convert a string to date using the specidied format
|
static java.util.Date |
stringToDate(java.lang.String s,
com.ibm.icu.util.ULocale l)
Convert a string to a date using the specified ULocale and default time zone
|
static java.util.Date |
stringToDate(java.lang.String s,
com.ibm.icu.util.ULocale l,
java.util.TimeZone tz)
Convert a string to a date using the specified ULocale and time zone
|
static java.util.Date |
stringToDateTime(java.lang.String s)
Convert a datetime string to a date using the default ULocale and time zone.
|
static java.util.Date |
stringToDateTime(java.lang.String s,
com.ibm.icu.util.ULocale l)
Convert datetime string to a date using the specified ULocale and default time zone.
|
static java.util.Date |
stringToDateTime(java.lang.String s,
com.ibm.icu.util.ULocale l,
java.util.TimeZone tz)
Convet a datetime string to a date using the specified ULocale and time zone.
|
public static final int ALN
public static final int UPPER
public static final int LOWER
public static final int DATE
public static final int DATETIME
public static final int TIME
public static final int INTEGER
public static final int SMALLINT
public static final int FLOAT
public static final int DECIMAL
public static final int DURATION
public static final int AMOUNT
public static final int YORN
public static final int GL
public static final int LONGALN
public static final int CRYPTO
public static final int CRYPTOX
public static final int CLOB
public static final int BLOB
public static final int BIGINT
public static final int UDTYPE
public static java.lang.String[] TYPEASSTRING
public static final int UNLIMITEDPLACES
public static final java.lang.String TIMESEP
public static final java.lang.String DATESEP
public static final char YEARCHAR
public static final char MONTHCHAR
public static final char DAYCHAR
public static final char AMCHAR
public static final char MINCHAR
public static final char HOUR24CHAR
public static final char HOUR12CHAR
public static final char SECONDCHAR
public static final java.lang.String SEPERATORS
public static final double MINSPERHOUR
public static final java.lang.String SPECIALSAVECHARS
public static final char[] HEXDIGITS
public static java.util.Date stringToDate(java.lang.String s) throws MXApplicationException
MXApplicationException
public static java.util.Date stringToDate(java.lang.String s, com.ibm.icu.util.ULocale l) throws MXApplicationException
MXApplicationException
public static java.util.Date stringToDate(java.lang.String s, com.ibm.icu.util.ULocale l, java.util.TimeZone tz) throws MXApplicationException
MXApplicationException
public static java.util.Date stringToDate(java.lang.String strDate, java.lang.String strFormat) throws MXApplicationException
MXApplicationException
public static java.lang.String dateToString(java.util.Date d)
public static java.lang.String dateToString(java.util.Date d, com.ibm.icu.util.ULocale l)
public static java.lang.String dateToString(java.util.Date d, com.ibm.icu.util.ULocale l, java.util.TimeZone tz)
public static java.util.Date stringToDateTime(java.lang.String s) throws MXApplicationException
MXApplicationException
public static java.util.Date stringToDateTime(java.lang.String s, com.ibm.icu.util.ULocale l) throws MXApplicationException
MXApplicationException
public static java.util.Date stringToDateTime(java.lang.String s, com.ibm.icu.util.ULocale l, java.util.TimeZone tz) throws MXApplicationException
MXApplicationException
public static java.lang.String dateTimeToParseString(java.util.Date d)
public static java.lang.String dateTimeToParseString(java.util.Date d, com.ibm.icu.util.ULocale l)
public static java.lang.String dateTimeToParseString(java.util.Date d, com.ibm.icu.util.ULocale l, com.ibm.icu.util.TimeZone tz)
public static java.lang.String dateTimeToString(java.util.Date d)
public static java.lang.String dateTimeToString(java.util.Date d, com.ibm.icu.util.ULocale l)
public static java.lang.String dateTimeToString(java.util.Date d, com.ibm.icu.util.ULocale l, java.util.TimeZone tz)
public static java.lang.String dateTimeToSQLString(java.util.Date d)
public static java.lang.String dateToSQLString(java.util.Date d)
public static java.util.Date getDateOnly(java.util.Date date)
date
- public static int[] parseDateTime(java.lang.String s, com.ibm.icu.util.ULocale l, java.lang.String pattern) throws MXApplicationException
MXApplicationException
public static void setSettingProp(java.lang.String propName, java.lang.String propValue)
propName
- Property namepropValue
- Property value