Module: Fluent::TimeMixin::Formatter
- Included in:
- Plugin::Formatter
- Defined in:
- lib/fluent/time.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(mod) ⇒ Object
169 170 171 |
# File 'lib/fluent/time.rb', line 169 def self.included(mod) mod.include TimeParameters end |
Instance Method Details
#time_formatter_create(type: @time_type, format: @time_format, timezone: @timezone, force_localtime: false) ⇒ Object
173 174 175 176 177 178 179 |
# File 'lib/fluent/time.rb', line 173 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 |