Module: Stack::Filters::DateTime

Includes:
Register
Defined in:
lib/stack/filters/datetime.rb

Instance Method Summary collapse

Methods included from Register

extensions, included, invoke_filter

Instance Method Details

#date_to_string(date) ⇒ Object



6
7
8
# File 'lib/stack/filters/datetime.rb', line 6

def date_to_string(date)
  date.strftime("%d %b %Y")
end

#date_to_xmlschema(date) ⇒ Object



10
11
12
# File 'lib/stack/filters/datetime.rb', line 10

def date_to_xmlschema(date)
  date.strftime("%Y-%m-%dT%H:%M:%S%Z")
end