public class DateTime extends Serializer
NULL_SER_STRING, VERSION
Constructor and Description |
---|
DateTime()
Default constructor initializes the time and date to the current time and current date.
|
DateTime(byte[] ab)
DateTime de-serialization from input byte array
|
DateTime(double dblDate,
long lTime)
Constructs DateTime from separate date and time inputs
|
Modifier and Type | Method and Description |
---|---|
Serializer |
deserialize(byte[] ab)
De-serialize from a byte array.
|
double |
getDate()
Retrieves the Date
|
long |
getTime()
Retrieves the time
|
static void |
main(java.lang.String[] astrArgs) |
byte[] |
serialize()
Serialize into a byte array.
|
getCollectionKeyValueDelimiter, getCollectionMultiLevelKeyDelimiter, getCollectionRecordDelimiter, getFieldDelimiter, getObjectTrailer
public DateTime() throws java.lang.Exception
java.lang.Exception
public DateTime(double dblDate, long lTime) throws java.lang.Exception
dblDate
- datelTime
- timejava.lang.Exception
- thrown on invalid inputspublic DateTime(byte[] ab) throws java.lang.Exception
ab
- Byte Arrayjava.lang.Exception
- Thrown if DateTime cannot be properly de-serializedpublic double getDate()
public long getTime()
public byte[] serialize()
Serializer
serialize
in class Serializer
public Serializer deserialize(byte[] ab)
Serializer
deserialize
in class Serializer
public static final void main(java.lang.String[] astrArgs) throws java.lang.Exception
java.lang.Exception