class IngramMicro::DateTimeFormatter
Public Instance Methods
format(datetime)
click to toggle source
# File lib/ingram_micro/date_time_formatter.rb, line 2 def format(datetime) if datetime.respond_to?(:strftime) datetime.strftime('%Y%m%d%H%M%S') else datetime end end