Sha256: e179e4fa414c2e11f3b8cd870594e88d0e85ec17e611a27ddca6bed5996574d8
Contents?: true
Size: 277 Bytes
Versions: 11
Compression:
Stored size: 277 Bytes
Contents
class Time # Returns a string with the time in an ISO-8601 date format. def to_iso8601_date self.strftime("%Y-%m-%d") end # Returns a string with the time in an ISO-8601 time format. def to_iso8601_time self.gmtime.strftime("%Y-%m-%dT%H:%M:%SZ") end end
Version data entries
11 entries across 11 versions & 2 rubygems