method

civil_from_format

v3.2.8 - Show latest stable - Class: DateTime
civil_from_format(utc_or_local, year, month=1, day=1, hour=0, min=0, sec=0)
public

No documentation available.

# File activesupport/lib/active_support/core_ext/date_time/conversions.rb, line 77
  def self.civil_from_format(utc_or_local, year, month=1, day=1, hour=0, min=0, sec=0)
    offset = utc_or_local.to_sym == :local ? local_offset : 0
    civil(year, month, day, hour, min, sec, offset)
  end