Sha256: 43774dcbe2f021f00c7265dbd686aaf2b0a8e61be18f533080db6348eaef6497

Contents?: true

Size: 209 Bytes

Versions: 1

Compression:

Stored size: 209 Bytes

Contents

module Dag::CLI::Utils
  module TimeFormat
    def time_format(time)
      #time.class == Time ? time.strftime('%Y-%m-%d %H:%M:%S') : time
      time.class == Time ? time.to_s[0...-6] : time
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
iij-dag-1.0.1 lib/dag/cli/utils/time_format.rb