mirror of https://github.com/apache/poi.git
add isEmpty() and toString() to DateAndTime
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1144645 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a1047df9e3
commit
4318687913
|
@ -83,4 +83,18 @@ public final class DateAndTime
|
|||
{
|
||||
return super.clone();
|
||||
}
|
||||
|
||||
public boolean isEmpty()
|
||||
{
|
||||
return _info == 0 && _info2 == 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
if ( isEmpty() )
|
||||
return "[DTTM] EMPTY";
|
||||
|
||||
return "[DTTM] " + getDate();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue