Sha256: eead7a20d79f19b642c30040da219dcbd505e0973d61226e5b7eff7788aa5475

Contents?: true

Size: 480 Bytes

Versions: 43

Compression:

Stored size: 480 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_iso_8601
    strftime(self.utc? ? "%Y-%m-%dT%H:%MZ" : "%Y-%m-%dT%H:%M")
  end

  def to_s
    clipped_iso_8601
  end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
brightbox-cli-3.3.0 lib/brightbox-cli/ruby_core_ext.rb
brightbox-cli-3.2.0 lib/brightbox-cli/ruby_core_ext.rb
brightbox-cli-3.1.0 lib/brightbox-cli/ruby_core_ext.rb
brightbox-cli-3.0.1 lib/brightbox-cli/ruby_core_ext.rb
brightbox-cli-3.0.0 lib/brightbox-cli/ruby_core_ext.rb
brightbox-cli-2.12.0 lib/brightbox-cli/ruby_core_ext.rb
brightbox-cli-2.11.2 lib/brightbox-cli/ruby_core_ext.rb
brightbox-cli-2.11.1 lib/brightbox-cli/ruby_core_ext.rb
brightbox-cli-2.11.0 lib/brightbox-cli/ruby_core_ext.rb
brightbox-cli-2.10.0 lib/brightbox-cli/ruby_core_ext.rb
brightbox-cli-2.9.3 lib/brightbox-cli/ruby_core_ext.rb
brightbox-cli-2.9.2 lib/brightbox-cli/ruby_core_ext.rb
brightbox-cli-2.9.1 lib/brightbox-cli/ruby_core_ext.rb
brightbox-cli-2.9.0 lib/brightbox-cli/ruby_core_ext.rb
brightbox-cli-2.8.2 lib/brightbox-cli/ruby_core_ext.rb
brightbox-cli-2.8.1 lib/brightbox-cli/ruby_core_ext.rb
brightbox-cli-2.8.0 lib/brightbox-cli/ruby_core_ext.rb
brightbox-cli-2.7.1 lib/brightbox-cli/ruby_core_ext.rb
brightbox-cli-2.7.0 lib/brightbox-cli/ruby_core_ext.rb
brightbox-cli-2.6.0 lib/brightbox-cli/ruby_core_ext.rb