Sha256: 49c214a534ae9325f3eb71a601f964faaa892a0d6a08304b152d12848e3d76e7
Contents?: true
Size: 486 Bytes
Versions: 4
Compression:
Stored size: 486 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 self.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
4 entries across 4 versions & 1 rubygems