com.dalsemi.jellybeans
Class Date
java.lang.Object
|
+--com.dalsemi.jellybeans.Date
- public class Date
- extends java.lang.Object
Utility class to convert a byte array representing the date and time
to a standard format of "MM-DD-YY HH:MM".
Note: This class is designed to be used with the com.dalsemi.fs.DSFile.list(boolean)
method and will probably disappear when changes to the file sytem are made. The
functionality provided here will eventually move to the java.util.Date class.
|
Constructor Summary |
Date()
|
|
Method Summary |
static java.lang.String |
getDateAndTime(byte[] data)
Returns a String representing the date and time. |
static void |
getDateAndTime(byte[] data,
int dOffset,
byte[] toArray,
int offset)
|
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Date
public Date()
getDateAndTime
public static java.lang.String getDateAndTime(byte[] data)
- Returns a String representing the date and time.
The argument array should have the follwing format.
data[0] = The month's value (1-12).
data[1] = The day's value (1-31).
data[2] = The year's value (0-99).
data[3] = The hours's value (0-23).
data[4] = The minute's value (0-59).
- Parameters:
data - an array representing the time to convert- Returns:
- the date and time
getDateAndTime
public static void getDateAndTime(byte[] data,
int dOffset,
byte[] toArray,
int offset)