Module: Fluent::TimeMixin::Parser
- Included in:
- Plugin::Parser
- Defined in:
- lib/fluent/time.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(mod) ⇒ Object
149 150 151 |
# File 'lib/fluent/time.rb', line 149 def self.included(mod) mod.include TimeParameters end |
Instance Method Details
#time_parser_create(type: @time_type, format: @time_format, timezone: @timezone, force_localtime: false) ⇒ Object
153 154 155 156 157 158 159 |
# File 'lib/fluent/time.rb', line 153 def time_parser_create(type: @time_type, format: @time_format, timezone: @timezone, force_localtime: false) 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 |