Class: Phidgets::GPS::GPS_time

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

Overview

This represents the GPS time structure, in UTC

Examples:

puts gps.time[:hours]
puts gps.time[:minutes]
puts gps.time[:seconds]
puts gps.time[:milliseconds]

Instance Attribute Summary collapse

Instance Attribute Details

#hoursInteger (readonly)

Hours

Returns:

  • (Integer)

    returns the hours



60
61
62
# File 'lib/phidgets-ffi/gps.rb', line 60

def hours
  @hours
end

#millisecondsInteger (readonly)

Milliseconds

Returns:

  • (Integer)

    returns the milliseconds



48
49
50
# File 'lib/phidgets-ffi/gps.rb', line 48

def milliseconds
  @milliseconds
end

#minutesInteger (readonly)

Minutes

Returns:

  • (Integer)

    returns the minutes



56
57
58
# File 'lib/phidgets-ffi/gps.rb', line 56

def minutes
  @minutes
end

#secondsInteger (readonly)

Seconds

Returns:

  • (Integer)

    returns the seconds



52
53
54
# File 'lib/phidgets-ffi/gps.rb', line 52

def seconds
  @seconds
end