Class: Phidgets::GPS::GPS_date

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/phidgets-ffi/gps.rb

Overview

This represents the GPS date structure, in UTC

Examples:

puts gps.date[:year]
puts gps.date[:month]
puts gps.date[:date]

Instance Attribute Summary collapse

Instance Attribute Details

#dayInteger (readonly)

Day

Returns:

  • (Integer)

    returns the day



20
21
22
# File 'lib/phidgets-ffi/gps.rb', line 20

def day
  @day
end

#monthInteger (readonly)

Month

Returns:

  • (Integer)

    returns the month



24
25
26
# File 'lib/phidgets-ffi/gps.rb', line 24

def month
  @month
end

#yearInteger (readonly)

Milliseconds

Returns:

  • (Integer)

    returns the milliseconds



28
29
30
# File 'lib/phidgets-ffi/gps.rb', line 28

def year
  @year
end