Module: SitemapGenerator::Builder::Helper

Included in:
SitemapFile
Defined in:
lib/sitemap_generator/builder/helper.rb

Instance Method Summary collapse

Instance Method Details

#w3c_date(date) ⇒ Object


5
6
7
# File 'lib/sitemap_generator/builder/helper.rb', line 5

def w3c_date(date)
   date.utc.strftime("%Y-%m-%dT%H:%M:%S+00:00")
end