FileDocCategorySizeDatePackage
DateAndTime.javaAPI DocApache Poi 3.0.12441Mon Jan 01 18:55:30 GMT 2007org.apache.poi.hwpf.usermodel

DateAndTime

public class DateAndTime extends Object implements Cloneable
This class is used to represent a date and time in a Word document.
author
Ryan Ackley

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.Objectclone()

    return super.clone();
  
public booleanequals(java.lang.Object o)

    DateAndTime dttm = (DateAndTime)o;
    return _info == dttm._info && _info2 == dttm._info2;
  
public voidserialize(byte[] buf, int offset)

    LittleEndian.putShort(buf, offset, _info);
    LittleEndian.putShort(buf, offset + LittleEndian.SHORT_SIZE, _info2);