--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Gives you a relative date in an attractive format
- !ruby/struct:SM::Flow::H 
  level: 4
  text: Parameters
- !ruby/object:SM::Flow::LIST 
  contents: 
  - !ruby/struct:SM::Flow::LI 
    label: "time<~to_date>:"
    body: The Date or Time to test
  - !ruby/struct:SM::Flow::LI 
    label: "locale<String, Symbol>:"
    body: An optional value which can be used by localization plugins
  type: :NOTE
- !ruby/struct:SM::Flow::H 
  level: 4
  text: Returns
- !ruby/object:SM::Flow::LIST 
  contents: 
  - !ruby/struct:SM::Flow::LI 
    label: "String:"
    body: Relative date
  type: :NOTE
- !ruby/struct:SM::Flow::H 
  level: 4
  text: Examples
- !ruby/struct:SM::Flow::VERB 
  body: "  relative_date(Time.now.utc) =&gt; &quot;today&quot;\n  relative_date(5.days.ago) =&gt; &quot;March 5th&quot;\n  relative_date(1.year.ago) =&gt; &quot;March 10th, 2007&quot;\n"
full_name: Merb::Helpers::DateAndTime#relative_date
is_singleton: false
name: relative_date
params: (time, locale=nil)
visibility: public
