|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jpos.iso.ISODate
public class ISODate
provides various parsing and format functions used by the ISO 8583 specs.
ISOUtil| Field Summary | |
|---|---|
static long |
ONE_YEAR
|
| Constructor Summary | |
|---|---|
ISODate()
|
|
| Method Summary | |
|---|---|
static String |
formatDate(Date d,
String pattern)
Formats a date object, using the default time zone for this host |
static String |
formatDate(Date d,
String pattern,
TimeZone timeZone)
You should use this version of formatDate() if you want a specific timeZone to calculate the date on. |
static String |
getANSIDate(Date d)
|
static String |
getANSIDate(Date d,
TimeZone timeZone)
|
static String |
getDate(Date d)
|
static String |
getDate(Date d,
TimeZone timeZone)
|
static String |
getDateTime(Date d)
|
static String |
getDateTime(Date d,
TimeZone timeZone)
|
static String |
getEuropeanDate(Date d)
|
static String |
getEuropeanDate(Date d,
TimeZone timeZone)
|
static String |
getExpirationDate(Date d)
|
static String |
getExpirationDate(Date d,
TimeZone timeZone)
|
static String |
getJulianDate(Date d)
|
static String |
getJulianDate(Date d,
TimeZone timeZone)
|
static String |
getTime(Date d)
|
static String |
getTime(Date d,
TimeZone timeZone)
|
static Date |
parse(String s)
converts a string in DD/MM/YY format to a Date object Warning: return null on invalid dates (prints Exception to console) Uses default time zone for this host |
static Date |
parse(String s,
TimeZone timeZone)
converts a string in DD/MM/YY format to a Date object Warning: return null on invalid dates (prints Exception to console) |
static Date |
parseDateTime(String s)
converts a string in DD/MM/YY HH:MM:SS format to a Date object Warning: return null on invalid dates (prints Exception to console) Uses default time zone for this host |
static Date |
parseDateTime(String s,
TimeZone timeZone)
converts a string in DD/MM/YY HH:MM:SS format to a Date object Warning: return null on invalid dates (prints Exception to console) |
static Date |
parseISODate(String d)
try to find out suitable date given [YY[YY]]MMDDhhmmss format (difficult thing being finding out appropiate year) |
static Date |
parseISODate(String d,
long currentTime)
try to find out suitable date given [YY[YY]]MMDDhhmmss format (difficult thing being finding out appropiate year) |
static Date |
parseISODate(String d,
long currentTime,
TimeZone timeZone)
try to find out suitable date given [YY[YY]]MMDDhhmmss format (difficult thing being finding out appropiate year) |
static Date |
parseISODate(String d,
TimeZone timeZone)
try to find out suitable date given [YY[YY]]MMDDhhmmss format (difficult thing being finding out appropiate year) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final long ONE_YEAR
| Constructor Detail |
|---|
public ISODate()
| Method Detail |
|---|
public static String formatDate(Date d,
String pattern)
d - date object to be formattedpattern - to be used for formatting
public static String formatDate(Date d,
String pattern,
TimeZone timeZone)
timeZone - for GMT for example, use TimeZone.getTimeZone("GMT")
and for Uruguay use TimeZone.getTimeZone("GMT-03:00")public static Date parse(String s)
public static Date parse(String s,
TimeZone timeZone)
s - String in DD/MM/YY recorded in timeZonetimeZone - for GMT for example, use TimeZone.getTimeZone("GMT")
and for Uruguay use TimeZone.getTimeZone("GMT-03:00")
public static Date parseDateTime(String s)
public static Date parseDateTime(String s,
TimeZone timeZone)
s - string in DD/MM/YY HH:MM:SS format recorded in timeZonetimeZone - for GMT for example, use TimeZone.getTimeZone("GMT")
and for Uruguay use TimeZone.getTimeZone("GMT-03:00")
public static Date parseISODate(String d)
d - date formated as [YY[YY]]MMDDhhmmss, typical field 13 + field 12
public static Date parseISODate(String d,
TimeZone timeZone)
d - date formated as [YY[YY]]MMDDhhmmss, typical field 13 + field 12timeZone - for GMT for example, use TimeZone.getTimeZone("GMT")
and for Uruguay use TimeZone.getTimeZone("GMT-03:00")
public static Date parseISODate(String d,
long currentTime)
d - date formated as [YY[YY]]MMDDhhmmss, typical field 13 + field 12currentTime - currentTime in millis
public static Date parseISODate(String d,
long currentTime,
TimeZone timeZone)
d - date formated as [YY[YY]]MMDDhhmmss, typical field 13 + field 12currentTime - currentTime in millistimeZone - for GMT for example, use TimeZone.getTimeZone("GMT")
and for Uruguay use TimeZone.getTimeZone("GMT-03:00")
public static String getDateTime(Date d)
public static String getDateTime(Date d,
TimeZone timeZone)
d - date object to be formattedtimeZone - for GMT for example, use TimeZone.getTimeZone("GMT")
and for Uruguay use TimeZone.getTimeZone("GMT-03:00")
public static String getTime(Date d)
public static String getTime(Date d,
TimeZone timeZone)
d - date object to be formattedtimeZone - for GMT for example, use TimeZone.getTimeZone("GMT")
and for Uruguay use TimeZone.getTimeZone("GMT-03:00")
public static String getDate(Date d)
public static String getDate(Date d,
TimeZone timeZone)
d - date object to be formattedtimeZone - for GMT for example, use TimeZone.getTimeZone("GMT")
and for Uruguay use TimeZone.getTimeZone("GMT-03:00")
public static String getANSIDate(Date d)
public static String getANSIDate(Date d,
TimeZone timeZone)
d - date object to be formattedtimeZone - for GMT for example, use TimeZone.getTimeZone("GMT")
and for Uruguay use TimeZone.getTimeZone("GMT-03:00")
public static String getEuropeanDate(Date d)
public static String getEuropeanDate(Date d,
TimeZone timeZone)
public static String getExpirationDate(Date d)
public static String getExpirationDate(Date d,
TimeZone timeZone)
d - date object to be formattedtimeZone - for GMT for example, use TimeZone.getTimeZone("GMT")
and for Uruguay use TimeZone.getTimeZone("GMT-03:00")
public static String getJulianDate(Date d)
d - date object to be formatted
public static String getJulianDate(Date d,
TimeZone timeZone)
d - date object to be formattedtimeZone - for GMT for example, use TimeZone.getTimeZone("GMT")
and for Uruguay use TimeZone.getTimeZone("GMT-03:00")
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||