TimeDate Class

Definition

Represents one date and time message (GPZDA)

public class TimeDate : Iot.Device.Nmea0183.Sentences.NmeaSentence
type TimeDate = class
    inherit NmeaSentence
Public Class TimeDate
Inherits NmeaSentence
Inheritance
TimeDate

Constructors

TimeDate(DateTimeOffset)

See NmeaSentence for constructor usage

TimeDate(TalkerId, IEnumerable<String>, DateTimeOffset)

Date and time message (ZDA). This should not normally need the last time as argument, because it defines it.

TimeDate(TalkerSentence, DateTimeOffset)

See NmeaSentence for constructor usage

Properties

Age

Age of this message

(Inherited from NmeaSentence)
DateTime

The time tag on this message

(Inherited from NmeaSentence)
Id

Sentence ID of this message ZDA.

LocalTimeOffset

Time offset of the local time from UTC:

ReplacesOlderInstance

This is true for this message type

ReverseDateFormat

True if the date format is using a reverse schema. GNSS receivers don't agree on whether the date is to be sent as day-month-year or year-month-day. Luckily, the year is always sent as 4-digit number, so that decoding is unambiguous. This field is used to reconstruct the same order for sending the message out.

SentenceId

The sentence Id of this packet

(Inherited from NmeaSentence)
TalkerId

The talker (sender) of this message

(Inherited from NmeaSentence)
Valid

True if the contents of this message are valid / understood This is false if the message type could be decoded, but the contents seem invalid or there's no useful data

(Inherited from NmeaSentence)

Methods

AgeTo(DateTimeOffset)

The relative age of this sentence against a time stamp. Useful when analyzing recorded data, where "now" should also be a time in the past.

(Inherited from NmeaSentence)
ReadChar(IEnumerator<String>)

Decodes the next field into a char

(Inherited from NmeaSentence)
ReadInt(IEnumerator<String>)

Decodes the next field into an int

(Inherited from NmeaSentence)
ReadString(IEnumerator<String>)

Decodes the next field into a string

(Inherited from NmeaSentence)
ReadValue(IEnumerator<String>)

Decodes the next field into a double

(Inherited from NmeaSentence)
ToNmeaMessage()

Translates the properties of this instance into an NMEA message

(Inherited from NmeaSentence)
ToNmeaParameterList()

Translates the properties of this instance into an NMEA message body, without TalkerId, SentenceId and checksum.

ToReadableContent()

Gets an user-readable string about this message

ToString()

Generates a readable instance of this string. Not overridable, use ToReadableContent() to override. (this is to prevent confusion with ToNmeaMessage().) Do not use this method to create an NMEA sentence.

(Inherited from NmeaSentence)

Applies to