Module: Dwca::Helper

Defined in:
lib/dwca/helper.rb

Instance Method Summary (collapse)

Instance Method Details

- (Cronic) parse_date(eventDate)

Assume a single range. Extend as we need for ranges.

Parameters:

  • eventDate (String)

Returns:

  • (Cronic)

    parse result



6
7
8
9
# File 'lib/dwca/helper.rb', line 6

def parse_date(eventDate)
  # TODO: detect ranges
  Chronic.parse(eventDate)
end