Class: Phidgets::GPS::GPS_date
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- Phidgets::GPS::GPS_date
- 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
-
#day ⇒ Integer
readonly
Day.
-
#month ⇒ Integer
readonly
Month.
-
#year ⇒ Integer
readonly
Milliseconds.
Instance Attribute Details
#day ⇒ Integer (readonly)
Day
20 21 22 |
# File 'lib/phidgets-ffi/gps.rb', line 20 def day @day end |
#month ⇒ Integer (readonly)
Month
24 25 26 |
# File 'lib/phidgets-ffi/gps.rb', line 24 def month @month end |
#year ⇒ Integer (readonly)
Milliseconds
28 29 30 |
# File 'lib/phidgets-ffi/gps.rb', line 28 def year @year end |