Sha256: 8702cce5b6985b68122aaed15e5c06e8504c24124e3b0f114faad04a96fb7613
Contents?: true
Size: 312 Bytes
Versions: 2
Compression:
Stored size: 312 Bytes
Contents
class Time # :nodoc: RCAP_TIME_FORMAT = "%Y-%m-%dT%H:%M:%S" RCAP_ZONE_FORMAT = "%+03i:00" def to_s_for_cap t = self.strftime( RCAP_TIME_FORMAT ) + format( RCAP_ZONE_FORMAT , utc_hours_offset ) t.sub(/\+(00:\d\d)$/, '-\1') end private def utc_hours_offset self.utc_offset/3600 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rcap-1.2.2 | lib/extensions/time.rb |
rcap-1.2.1 | lib/extensions/time.rb |