Module: Libxlsxwriter::DatetimeWrappers

Included in:
Datetime
Defined in:
lib/fast_excel/binding.rb

Overview

Fields:

:year

(Integer) Year : 1900 - 9999

:month

(Integer) Month : 1 - 12

:day

(Integer) Day : 1 - 31

:hour

(Integer) Hour : 0 - 23

:min

(Integer) Minute : 0 - 59

:sec

(Float) Seconds : 0 - 59.999

Instance Method Summary collapse

Instance Method Details

#to_excel_date(date_1904) ⇒ Float

Parameters:

  • date_1904 (Integer)

Returns:

  • (Float)


364
365
366
# File 'lib/fast_excel/binding.rb', line 364

def to_excel_date(date_1904)
  Libxlsxwriter.datetime_to_excel_date(self, date_1904)
end