Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
require_relative "base"

module Administrate
  module Field
    class Time < Base
      def time
        return I18n.localize(data, format: format) if options[:format]

        data.strftime("%I:%M%p")
      end

      private

      def format
        options[:format]
      end
    end
  end
end