Method: XlsFunction::Converters::TimeSerialConverter.serial_to_time
- Defined in:
- lib/xls_function/converters/time_serial_converter.rb
.serial_to_time(time_serial, now = ORIGIN_TIME) ⇒ Object
23 24 25 |
# File 'lib/xls_function/converters/time_serial_converter.rb', line 23 def serial_to_time(time_serial, now = ORIGIN_TIME) Time.parse(TimeSerial.new(time_serial).to_s, now.to_time) end |