public class B2BTimeFormatter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
B2BTIME |
java.lang.String |
B2BTimePattern |
static int |
XMLTIME |
java.lang.String |
xmlTimePattern |
Constructor and Description |
---|
B2BTimeFormatter()
Default constructor
|
B2BTimeFormatter(java.lang.String date,
int DateType)
Constructor which accepts a String date
which is either an XML or an B2B date.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getB2BTime()
Return the Time in B2B Format
|
java.util.Date |
getDate()
Return a java.util.date object
|
java.lang.String |
getPatternFormattedTime(java.lang.String pattern)
Return the Formatted date given by Pattern
|
int |
getTimeType()
Return the date format of the original date provided to this class
|
java.lang.String |
getXMLTime()
Return the Time in XML Format
|
public java.lang.String B2BTimePattern
public java.lang.String xmlTimePattern
public static final int B2BTIME
public static final int XMLTIME
public B2BTimeFormatter()
public B2BTimeFormatter(java.lang.String date, int DateType) throws java.text.ParseException
date
- the DateDateType
- THe type of the datejava.text.ParseException
public java.lang.String getPatternFormattedTime(java.lang.String pattern)
public java.util.Date getDate()
public int getTimeType()
public java.lang.String getB2BTime()
public java.lang.String getXMLTime()