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