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 puts gps.time puts gps.time puts gps.time

Instance Attribute Summary collapse

Instance Attribute Details

#hoursInteger (readonly)

Hours

Returns:

  • returns the hours



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

def hours
  @hours
end

#millisecondsInteger (readonly)

Milliseconds

Returns:

  • returns the milliseconds



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

def milliseconds
  @milliseconds
end

#minutesInteger (readonly)

Minutes

Returns:

  • returns the minutes



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

def minutes
  @minutes
end

#secondsInteger (readonly)

Seconds

Returns:

  • returns the seconds



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

def seconds
  @seconds
end