public interface ZDASentence extends TimeSentence, DateSentence
Example:
$GPZDA,032915,07,08,2004,00,00*4D
ALTERNATIVE_BEGIN_CHAR, BEGIN_CHAR, CHECKSUM_DELIMITER, FIELD_DELIMITER, MAX_LENGTH, TERMINATOR| Modifier and Type | Method and Description |
|---|---|
int |
getLocalZoneHours()
Get offset to local time zone in hours, from 0 to +/- 13 hours.
|
int |
getLocalZoneMinutes()
Get offset to local time zone in minutes, from 0 to +/- 59.
|
void |
setLocalZoneHours(int hours)
Set offset to local time zone in hours.
|
void |
setLocalZoneMinutes(int minutes)
Set offset to local time zone in minutes.
|
void |
setTimeAndLocalZone(Time t)
Set time and local time zone hours and minutes.
|
Date |
toDate()
Get date and time as
Date. |
getTime, setTimegetDate, setDategetBeginChar, getFieldCount, getSentenceId, getTalkerId, isAISSentence, isProprietary, isValid, reset, setBeginChar, setTalkerId, toSentence, toSentence, toStringint getLocalZoneHours()
DataNotAvailableException - If the data is
not available.ParseException - If the field contains
unexpected or illegal value.int getLocalZoneMinutes()
DataNotAvailableException - If the data is
not available.ParseException - If the field contains
unexpected or illegal value.void setLocalZoneHours(int hours)
hours - Offset, from 0 to +/- 13 hours.void setLocalZoneMinutes(int minutes)
minutes - Offset, from 0 to +/- 59 minutes.void setTimeAndLocalZone(Time t)
t - Time to be inserted in sentence.Date toDate()
Date.DateDataNotAvailableException - If any of the
date/time values is not available.ParseException - If the any of the
date/time fields contains invalid value.Copyright (C) 2010-2017 Java Marine API authors. All Rights Reserved.