public class DbfFieldDate extends DbfField
builder, dataAddress, fieldDecimalCount, fieldLength, fieldType, isIntegral, name, numeric, offset
Modifier and Type | Method and Description |
---|---|
Object |
getApplicationData()
Gets the data for the field as an Object of the appropriate class.
|
double |
getDouble()
Gets the value stored in the field during the most recent read as a
floating point value giving seconds since the Epoch 1970.
|
int |
getInteger()
Gets an integer value indicating whether the data field has been correctly
read.
|
long |
getLong()
Gets the date value as an long integer time value consistent with the Java
convention using Epoch 1970.
|
ZonedDateTime[] |
getUniqueValueArray(DbfFileReader dbf)
Gets an array of unique values for this field.
|
ZonedDateTime |
getValue()
Gets a ZonedDateTime instance representing the value extracted from the
file.
|
boolean |
isNull()
Indicates whether the field contains a null value.
|
void |
setZoneOffset(ZoneOffset zoneOffset)
Sets the zone offset to be used when reading data
|
getFieldDecimalCount, getFieldLength, getFieldType, getLogicalValue, getName, getString, getUniqueValues, isIntegral, isNumeric, toString, usesEngineeringNotation
public double getDouble()
public int getInteger()
Although it would be tempting to make this field return an conventional integer representation of seconds since Epoch 1970, a 32 bit integer value will overflow and become undefined on 03:14:07 UTC on 19 January 2038. If you require an integer time value, please use the getLong() method.
getInteger
in class DbfField
public long getLong()
public Object getApplicationData()
DbfField
getApplicationData
in class DbfField
public ZonedDateTime getValue()
public ZonedDateTime[] getUniqueValueArray(DbfFileReader dbf) throws IOException
dbf
- a valid instanceIOException
- in the event of an unrecoverable I/O condition.public void setZoneOffset(ZoneOffset zoneOffset)
zoneOffset
- a valid instancepublic boolean isNull()
DbfField
Copyright © 2021. All rights reserved.