Class: Date

Inherits:
Object
  • Object
show all
Defined in:
lib/rcap/extensions/date.rb

Instance Method Summary (collapse)

Instance Method Details

- (String) to_s_for_cap

Returns a string representaion of the time suitable for CAP.

Examples:

Date.today.to_s_for_cap # => "2011-10-26T00:00:00+00:00"

Returns:



8
9
10
# File 'lib/rcap/extensions/date.rb', line 8

def to_s_for_cap
  self.to_datetime.to_s_for_cap
end