Sha256: a2e3e883296fac03375ca9a576095c8ef5b1ed64abcce7e583b7c4b0bebc9c25
Contents?: true
Size: 298 Bytes
Versions: 5
Compression:
Stored size: 298 Bytes
Contents
# frozen_string_literal: true DateTime.class_eval do # @return [String] def display_military(all = false) strftime(all ? '%m/%d/%Y %T' : '%-m/%-d/%y %T') end end Time.class_eval do # @return [String] def display_military(all = false) to_datetime.display_military(all) end end
Version data entries
5 entries across 5 versions & 1 rubygems