class Nmea::Gps::Zda

Public Instance Methods

date() click to toggle source
# File lib/nmea_gps/sentences/zda.rb, line 15
def date
  Date.parse("#{raw_data[3]}/#{raw_data[2]}/#{raw_data[1]}")
end
local_zone_hours() click to toggle source
# File lib/nmea_gps/sentences/zda.rb, line 19
def local_zone_hours
  return if raw_data[4].blank?
  raw_data[4].to_i
end
local_zone_minutes() click to toggle source
# File lib/nmea_gps/sentences/zda.rb, line 24
def local_zone_minutes
  return if raw_data[5].blank?
  raw_data[5].to_i
end
name() click to toggle source
# File lib/nmea_gps/sentences/zda.rb, line 7
def name
  "Date and Time"
end
time() click to toggle source
# File lib/nmea_gps/sentences/zda.rb, line 11
def time
  hhmmss_to_local_time raw_data[0]
end