Methods

Class/Module Index [+]

Quicksearch

HammerCLI::Output::Formatters::DateFormatter

Public Instance Methods

format(string_date) click to toggle source
# File lib/hammer_cli/output/formatters.rb, line 87
def format(string_date)
  t = DateTime.parse(string_date.to_s)
  t.strftime("%Y/%m/%d %H:%M:%S")
rescue ArgumentError
  ""
end
tags() click to toggle source
# File lib/hammer_cli/output/formatters.rb, line 83
def tags
  [:flat]
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.