module Fluent::TimeMixin::Parser
Public Class Methods
included(mod)
click to toggle source
# File lib/fluent/time.rb, line 185 def self.included(mod) mod.include TimeParameters end
Public Instance Methods
time_parser_create(type: @time_type, format: @time_format, timezone: @timezone, force_localtime: false)
click to toggle source
# File lib/fluent/time.rb, line 189 def time_parser_create(type: @time_type, format: @time_format, timezone: @timezone, force_localtime: false) return MixedTimeParser.new(type, format, @localtime, timezone, @utc, force_localtime, @time_format_fallbacks) if type == :mixed return NumericTimeParser.new(type) if type != :string return TimeParser.new(format, true, nil) if force_localtime localtime = @localtime && (timezone.nil? && !@utc) TimeParser.new(format, localtime, timezone) end