Package com.webcodepro.shrinkit
Class TimeRec
java.lang.Object
com.webcodepro.shrinkit.TimeRec
Apple IIgs Toolbox TimeRec object.
-
Constructor Summary
ConstructorsConstructorDescriptionTimeRec()
Construct a TimeRec with the current date.TimeRec
(byte[] bytes, int offset) Construct a TimeRec from the given LENGTH byte array.TimeRec
(InputStream inputStream) Construct a TimeRec from the InputStream.Construct a TimeRec with the specified date. -
Method Summary
-
Constructor Details
-
TimeRec
public TimeRec()Construct a TimeRec with the current date. -
TimeRec
Construct a TimeRec with the specified date. You may pass in a null for a null date (all 0x00's). -
TimeRec
public TimeRec(byte[] bytes, int offset) Construct a TimeRec from the given LENGTH byte array. -
TimeRec
Construct a TimeRec from the InputStream.- Throws:
IOException
-
-
Method Details
-
setDate
Set the date. -
getDate
Convert the TimeRec into a Java Date object. Note that years 1900-1939 are assumed to be 2000-2039 per the NuFX addendum.- See Also:
-
getBytes
public byte[] getBytes()
-