| Modifier and Type | Method and Description |
|---|---|
static UnsignedShort |
encodeMsDosDate(Calendar cal)
Encode the MS DOS date (year, month and day of month) stored in the
Calendar object to an unsigned short value. |
static void |
parseMsDosDate(UnsignedShort s,
Calendar cal)
Parse the MS DOS date (year, month and day of month) encoded in the
supplied unsigned short value and update the calendar object.
|
public static void parseMsDosDate(UnsignedShort s, Calendar cal) throws IllegalArgumentException
The date should be encoded as described here.
s - The encoded date.cal - The calendar to update with the date.IllegalArgumentException - If the encoded date is invalid.public static UnsignedShort encodeMsDosDate(Calendar cal)
Calendar object to an unsigned short value.
The date is encoded as described here.
cal - The calendar object containing the date to encode.