|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.at4j.support.util.MsDosTime
public final class MsDosTime
This class contains static utility methods for working with MS DOS times. An MS DOS time is a time in a day with two second precision. It can be encoded in two bytes.
See the Microsoft documentation.
MsDosDate
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |