接口 DateSentence

所有超级接口:
Sentence
所有已知子接口:
RMCSentence, ZDASentence

public interface DateSentence extends Sentence
Sentences that contains date information. Notice that some sentences may contain only time without the date.
作者:
Kimmo Tuukkanen
另请参阅:
  • 方法详细资料

    • getDate

      Date getDate()
      Parses the date information from sentence fields and returns a Date.
      返回:
      Date object
      抛出:
      DataNotAvailableException - If the data is not available.
      ParseException - If the field contains unexpected or illegal value.
    • setDate

      void setDate(Date date)
      Set date. Depending on the sentence type, the values may be inserted to multiple fields or combined into one. Four-digit year value may also be reduced into two-digit format.
      参数:
      date - Date