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-2.5.0 lib/brightbox-cli/ruby_core_ext.rb
brightbox-cli-2.4.1 lib/brightbox-cli/ruby_core_ext.rb
brightbox-cli-2.4.0 lib/brightbox-cli/ruby_core_ext.rb
brightbox-cli-2.3.4 lib/brightbox-cli/ruby_core_ext.rb
brightbox-cli-2.3.3 lib/brightbox-cli/ruby_core_ext.rb
brightbox-cli-2.3.2 lib/brightbox-cli/ruby_core_ext.rb
brightbox-cli-2.3.1 lib/brightbox-cli/ruby_core_ext.rb
brightbox-cli-2.3.0 lib/brightbox-cli/ruby_core_ext.rb
brightbox-cli-2.2.0 lib/brightbox-cli/ruby_core_ext.rb
brightbox-cli-2.1.2 lib/brightbox-cli/ruby_core_ext.rb
brightbox-cli-2.1.1 lib/brightbox-cli/ruby_core_ext.rb
brightbox-cli-2.1.0 lib/brightbox-cli/ruby_core_ext.rb
brightbox-cli-2.0.0 lib/brightbox-cli/ruby_core_ext.rb
brightbox-cli-1.6.0 lib/brightbox-cli/ruby_core_ext.rb
brightbox-cli-1.5.0 lib/brightbox-cli/ruby_core_ext.rb
brightbox-cli-1.4.3 lib/brightbox-cli/ruby_core_ext.rb
brightbox-cli-1.4.2 lib/brightbox-cli/ruby_core_ext.rb
brightbox-cli-1.4.1 lib/brightbox-cli/ruby_core_ext.rb
brightbox-cli-1.4.0 lib/brightbox-cli/ruby_core_ext.rb
brightbox-cli-1.3.0 lib/brightbox-cli/ruby_core_ext.rb