DateAndTimepublic class DateAndTime extends Object implements CloneableThis class is used to represent a date and time in a Word document. |
Fields Summary |
---|
public static final int | SIZE | private short | _info | private static final BitField | _minutes | private static final BitField | _hours | private static final BitField | _dom | private short | _info2 | private static final BitField | _months | private static final BitField | _years | private static final BitField | _weekday |
Constructors Summary |
---|
public DateAndTime()
| public DateAndTime(byte[] buf, int offset)
_info = LittleEndian.getShort(buf, offset);
_info2 = LittleEndian.getShort(buf, offset + LittleEndian.SHORT_SIZE);
|
Methods Summary |
---|
public java.lang.Object | clone()
return super.clone();
| public boolean | equals(java.lang.Object o)
DateAndTime dttm = (DateAndTime)o;
return _info == dttm._info && _info2 == dttm._info2;
| public void | serialize(byte[] buf, int offset)
LittleEndian.putShort(buf, offset, _info);
LittleEndian.putShort(buf, offset + LittleEndian.SHORT_SIZE, _info2);
|
|