public class AS400DateTimeConverter
extends java.lang.Object
DateTimeConverter| Modifier and Type | Field and Description |
|---|---|
protected 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,
java.lang.String inFormat,
java.lang.String outFormat)
Deprecated.
Converts date and time values from the input format to the requested output format.
|
static byte[] |
getByteArray(AS400 as400,
java.util.Date date,
java.lang.String format)
Deprecated.
Returns the converted date and time in a byte array.
|
static java.util.Date |
getDate(AS400 as400,
byte[] in,
java.lang.String format)
Deprecated.
Returns the Date object in the YYMD format.
|
protected AS400 as400_
public AS400DateTimeConverter(AS400 system)
system - The AS/400 system.public static byte[] convert(AS400 system, byte[] in, java.lang.String inFormat, java.lang.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 java.util.Date getDate(AS400 as400, byte[] in, java.lang.String format)
as400 - The system used to do the conversion.in - The date and time value to be converted.format - The format of the date and time value being provided.public static byte[] getByteArray(AS400 as400, java.util.Date date, java.lang.String format)
as400 - The system used to do the conversion.date - The Date object to be converted. It must be in the format YYMD.format - The output date and time format.