Class: Phidgets::GPS::GPS_time
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- Phidgets::GPS::GPS_time
- 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
-
#hours ⇒ Integer
readonly
Hours.
-
#milliseconds ⇒ Integer
readonly
Milliseconds.
-
#minutes ⇒ Integer
readonly
Minutes.
-
#seconds ⇒ Integer
readonly
Seconds.
Instance Attribute Details
#hours ⇒ Integer (readonly)
Hours
60 61 62 |
# File 'lib/phidgets-ffi/gps.rb', line 60 def hours @hours end |
#milliseconds ⇒ Integer (readonly)
Milliseconds
48 49 50 |
# File 'lib/phidgets-ffi/gps.rb', line 48 def milliseconds @milliseconds end |
#minutes ⇒ Integer (readonly)
Minutes
56 57 58 |
# File 'lib/phidgets-ffi/gps.rb', line 56 def minutes @minutes end |
#seconds ⇒ Integer (readonly)
Seconds
52 53 54 |
# File 'lib/phidgets-ffi/gps.rb', line 52 def seconds @seconds end |