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
155 156 157 |
# File 'lib/fluent/time.rb', line 155 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
159 160 161 162 163 164 165 |
# File 'lib/fluent/time.rb', line 159 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 |