|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.ibm.wbi.protocol.http.HttpDate
HttpDate provides several services with regards to dates and date formatting.
| Field Summary | |
static java.lang.String |
COPYRIGHT
|
static long |
DATE_ERROR
Data error. |
static long |
DATE_INFINITY
Infinity constant. |
static long |
DATE_NEVER
Never constant. |
static java.lang.String |
RFC1036DATEFMT
RFC 1036 data format. |
static java.lang.String |
RFC1123DATEFMT
RFC 1123 date format. |
static java.lang.String |
RFCASCTIMEFMT
RFC ASC time format. |
| Constructor Summary | |
HttpDate()
Constructs an HTTPDate object representing the current time. |
|
HttpDate(long iTime)
Constructs an HTTPDate object from the passed long. |
|
HttpDate(java.lang.String iString)
Constructs an HTTPDate object from an RFC compliant string. |
|
| Method Summary | |
long |
getAsLong()
Returns the time represented as a long. |
java.lang.String |
getAsString()
Returns the time represented as a string. |
int |
getDay()
Returns the day of the month of the internal time. |
int |
getHour()
Returns the hour of the day of the internal time. |
int |
getMin()
Returns the minute of the hour of the internal time. |
int |
getMonth()
Returns the month of the year of the internal time. |
int |
getSec()
Returns the second of the minute of the internal time. |
int |
getWDay()
Returns the day of the week of the internal time. |
int |
getYear()
Returns the year of the internal time. |
java.lang.String |
toString()
Returns the internal time represented as a string in RFC 1123 format. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final java.lang.String COPYRIGHT
public static final long DATE_NEVER
public static final long DATE_INFINITY
public static final long DATE_ERROR
public static final java.lang.String RFC1123DATEFMT
public static final java.lang.String RFC1036DATEFMT
public static final java.lang.String RFCASCTIMEFMT
| Constructor Detail |
public HttpDate(java.lang.String iString)
iString - The time in a formatted string.public HttpDate()
public HttpDate(long iTime)
iTime - The number of uSeconds since the epoch (in milli).| Method Detail |
public int getDay()
public int getWDay()
public int getMonth()
public int getYear()
public int getHour()
public int getMin()
public int getSec()
public long getAsLong()
public java.lang.String getAsString()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||