class RubyXL::NumberFormat

www.schemacentral.com/sc/ooxml/e-ssml_numFmt-1.html

Public Instance Methods

is_date_format?() click to toggle source
# File lib/rubyXL/objects/stylesheet.rb, line 16
def is_date_format?
  #             v-------- Toss all the escaped chars -------v v--- and see if any date-related remained
  !!(format_code.gsub(/(\"[^\"]*\"|\[[^\]]*\]|[\_*].)/i, '') =~ /[dmyhs]/i)
end