module Transactions
  module DateHelper
    def transactions_date_formatter(time_map)
      output_date_format = "%b %-d %Y %H:%M:%S GMT"
      epoch_micros = time_map[:nanos] / 10**6
      Time.at(time_map[:seconds], epoch_micros).strftime(output_date_format)
    end
  end
end