module Fluent::TimeMixin::Formatter

def self.included(mod)

def self.included(mod)
  mod.include TimeParameters
end

def time_formatter_create(type: @time_type, format: @time_format, timezone: @timezone, force_localtime: false)

def time_formatter_create(type: @time_type, format: @time_format, timezone: @timezone, force_localtime: false)
  return NumericTimeFormatter.new(type) if type != :string
  return TimeFormatter.new(format, true, nil) if force_localtime
  localtime = @localtime && (timezone.nil? && !@utc)
  TimeFormatter.new(format, localtime, timezone)
end