接口 ZDASentence

所有超级接口:
DateSentence, Sentence, TimeSentence

public interface ZDASentence extends TimeSentence, DateSentence
UTC time and date with local time zone offset.

Example:
$GPZDA,032915,07,08,2004,00,00*4D

作者:
Kimmo Tuukkanen
  • 方法详细资料

    • getLocalZoneHours

      int getLocalZoneHours()
      Get offset to local time zone in hours, from 0 to +/- 13 hours.
      返回:
      Time zone offset
      抛出:
      DataNotAvailableException - If the data is not available.
      ParseException - If the field contains unexpected or illegal value.
    • getLocalZoneMinutes

      int getLocalZoneMinutes()
      Get offset to local time zone in minutes, from 0 to +/- 59.
      返回:
      Time zone offset
      抛出:
      DataNotAvailableException - If the data is not available.
      ParseException - If the field contains unexpected or illegal value.
    • setLocalZoneHours

      void setLocalZoneHours(int hours)
      Set offset to local time zone in hours.
      参数:
      hours - Offset, from 0 to +/- 13 hours.
    • setLocalZoneMinutes

      void setLocalZoneMinutes(int minutes)
      Set offset to local time zone in minutes.
      参数:
      minutes - Offset, from 0 to +/- 59 minutes.
    • setTimeAndLocalZone

      void setTimeAndLocalZone(Time t)
      Set time and local time zone hours and minutes.
      参数:
      t - Time to be inserted in sentence.
    • toDate

      Date toDate()
      Get date and time as 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.