From: unbewusst.sein@... (=?ISO-8859-1?Q?Une_B=E9vue?=) Date: 2011-03-30T14:26:57+09:00 Subject: Re: date format Y. NOBUOKA wrote: > Yes. There are several formats to represent time. > And when you use in a sitemap.xml, you should represent > time in the former format [1]. > > [1] http://www.sitemaps.org/protocol.php > > > if yes, how to switch to the first one ? > > You can do it by using a Time#xmlschema method [2]. > To use this method, you must do require 'time' module. > See example below: > > [2] http://www.ruby-doc.org/core-1.9/classes/Time.html#M000333 > > $ irb > ruby-1.9.2-p136 :001 > require 'time' > => true > ruby-1.9.2-p136 :002 > File.mtime( 'test' ).xmlschema > => "2011-03-30T13:34:40+09:00" ok, fine, cristal clear, thanks a lot ! -- � A quoi bon soulever des montagnes quand il est si simple de passer par-dessus ? � (Boris Vian)