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
200 201 202 |
# File 'lib/fluent/time.rb', line 200 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
204 205 206 207 208 209 210 |
# File 'lib/fluent/time.rb', line 204 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 |