# frozen_string_literal: true class DateTime # @return [String] def display_military(all = false) strftime(all ? '%m/%d/%Y %T' : '%-m/%-d/%y %T') end end class Time # @return [String] def display_military(all = false) to_datetime.display_military(all) end end