Modifier and Type | Method and Description |
---|---|
static UnsignedShort |
encodeMsDosTime(Calendar cal)
Encode the MS DOS time (hour of day, minute and second with two-second
precision) stored in the supplied
Calendar object to an unsigned
short value. |
static void |
parseMsDosTime(UnsignedShort s,
Calendar cal)
Parse the MS DOS time (hour of day, minute and second with two-second
precision) encoded in the supplied unsigned short value and update the
calendar object.
|
public static void parseMsDosTime(UnsignedShort s, Calendar cal) throws IllegalArgumentException
The time should be encoded as described here.
s
- The encoded time.cal
- The calendar to update with the time.IllegalArgumentException
- If the encoded time is invalid.public static UnsignedShort encodeMsDosTime(Calendar cal)
Calendar
object to an unsigned
short value.
The time is encoded as described here.
cal
- The calendar object containing the time to encode.