Module: DosTime::Formatter
- Defined in:
- lib/doo_dah/dos_time.rb
Instance Method Summary collapse
Instance Method Details
#to_dos_date ⇒ Object
8 9 10 |
# File 'lib/doo_dah/dos_time.rb', line 8 def to_dos_date day + (month << 5) + ((year - 1980) << 9) end |
#to_dos_time ⇒ Object
4 5 6 |
# File 'lib/doo_dah/dos_time.rb', line 4 def to_dos_time (sec >> 1) + (min << 5) + (hour << 11) end |