|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ZDASentence
UTC time and date with local time zone offset.
Example:
$GPZDA,032915,07,08,2004,00,00*4D
| Field Summary |
|---|
| Fields inherited from interface net.sf.marineapi.nmea.sentence.Sentence |
|---|
ALTERNATIVE_BEGIN_CHAR, BEGIN_CHAR, CHECKSUM_DELIMITER, FIELD_DELIMITER, MAX_LENGTH, TERMINATOR |
| Method Summary | |
|---|---|
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. |
| Methods inherited from interface net.sf.marineapi.nmea.sentence.TimeSentence |
|---|
getTime, setTime |
| Methods inherited from interface net.sf.marineapi.nmea.sentence.DateSentence |
|---|
getDate, setDate |
| Methods inherited from interface net.sf.marineapi.nmea.sentence.Sentence |
|---|
getBeginChar, getFieldCount, getSentenceId, getTalkerId, isProprietary, isValid, reset, setBeginChar, setTalkerId, toSentence, toSentence, toString |
| Method Detail |
|---|
int 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.
Date
DataNotAvailableException - If any of the
date/time values is not available.
ParseException - If the any of the
date/time fields contains invalid value.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||