|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.as400.access.AS400DateTimeConverter
public class AS400DateTimeConverter extends Object
The AS400DateTimeConverter class represents a converted date and time. The AS/400 System API QWCCVTDT is used to convert a date and time value from one format to another format.
DateTimeConverter| Modifier and Type | Field and Description |
|---|---|
protected static AS400 |
as400_
Deprecated. The system. |
| Constructor and Description |
|---|
AS400DateTimeConverter(AS400 system)
Deprecated. Constructs a AS400DateTimeConverter object. |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
convert(AS400 system,
byte[] in,
String inFormat,
String outFormat)
Deprecated. Converts date and time values from the input format to the requested output format. |
static byte[] |
getByteArray(Date date,
String format)
Deprecated. Returns the converted date and time in a byte array. |
static Date |
getDate(byte[] in,
String format)
Deprecated. Returns the Date object in the YYMD format. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static AS400 as400_
| Constructor Detail |
|---|
public AS400DateTimeConverter(AS400 system)
system - The AS/400 system.| Method Detail |
|---|
public static byte[] convert(AS400 system,
byte[] in,
String inFormat,
String outFormat)
system - The AS/400 system.in - The date and time value to be converted.inFormat - The input date and time format. Possible values are:
outFormat - The output date and time format. Possible values are:
public static Date getDate(byte[] in,
String format)
in - The date and time value to be converted.format - The format of the date and time value being provided.
public static byte[] getByteArray(Date date,
String format)
date - The Date object to be converted. It must be in the format YYMD.format - The output date and time format.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||