Class: Date

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

Instance Method Summary collapse

Instance Method Details

#to_s_for_capString

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
  to_datetime.to_s_for_cap
end