Sha256: 68117b6e838182a623a58bf29db070d9387ceac032283d456b4f4fab41309f65

Contents?: true

Size: 473 Bytes

Versions: 14

Compression:

Stored size: 473 Bytes

Contents

class Time
  # Returns a shortened version of ISO 8601 omitting the seconds and timezone
  # information.
  #
  # @note This output is probably in error and should be updated however the
  #   missing characters will reformat a number of columns and pages of output.
  #
  # @return [String] A clipped form of date, ISO 8601 without seconds
  #
  def clipped_iso8601
    strftime(utc? ? "%Y-%m-%dT%H:%MZ" : "%Y-%m-%dT%H:%M")
  end

  def to_s
    clipped_iso8601
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
brightbox-cli-4.8.0 lib/brightbox-cli/ruby_core_ext.rb
brightbox-cli-4.7.0 lib/brightbox-cli/ruby_core_ext.rb
brightbox-cli-4.6.0 lib/brightbox-cli/ruby_core_ext.rb
brightbox-cli-4.5.0 lib/brightbox-cli/ruby_core_ext.rb
brightbox-cli-4.5.0.rc1 lib/brightbox-cli/ruby_core_ext.rb
brightbox-cli-4.4.0 lib/brightbox-cli/ruby_core_ext.rb
brightbox-cli-4.3.2 lib/brightbox-cli/ruby_core_ext.rb
brightbox-cli-4.3.1 lib/brightbox-cli/ruby_core_ext.rb
brightbox-cli-4.3.0 lib/brightbox-cli/ruby_core_ext.rb
brightbox-cli-4.2.1 lib/brightbox-cli/ruby_core_ext.rb
brightbox-cli-4.2.0 lib/brightbox-cli/ruby_core_ext.rb
brightbox-cli-4.1.0 lib/brightbox-cli/ruby_core_ext.rb
brightbox-cli-4.0.0 lib/brightbox-cli/ruby_core_ext.rb
brightbox-cli-4.0.0.rc2 lib/brightbox-cli/ruby_core_ext.rb