Class: Time
- Inherits:
-
Object
- Object
- Time
- Defined in:
- lib/rcap/extensions/time.rb
Instance Method Summary (collapse)
-
- (String) to_s_for_cap
Returns a string representaion of the time suitable for CAP.
Instance Method Details
- (String) to_s_for_cap
Returns a string representaion of the time suitable for CAP.
7 8 9 10 |
# File 'lib/rcap/extensions/time.rb', line 7 def to_s_for_cap t = self.strftime( RCAP::RCAP_TIME_FORMAT ) + format( RCAP::RCAP_ZONE_FORMAT , utc_hours_offset ) t.sub(/\+(00:\d\d)$/, '-\1') end |