From: Suraj Kurapati Date: 2008-01-12T12:28:44+09:00 Subject: Re: does ruby's strftime not attempt POSIX-compliance? Jochen Hayek wrote: > Suraj Kurapati wrote: >> See this post for an example: >> http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/57474 > > Given Matz's note, > so how would the 2002 ruby-talk translate into ruby1.9? > And I mean "using LC_ALL". You don't really need LC_ALL if you only want to translate date & time. Here are some examples using LC_TIME: $ irb -r locale # assuming you installed ruby-locale for Ruby 1.8 >> Time.now => Tue Oct 23 13:12:20 -0700 2007 # in German: >> Locale.setlocale(Locale::LC_TIME, "de_DE"); Time.now => Di Okt 23 13:12:32 -0700 2007 # in Spanish: >> Locale.setlocale(Locale::LC_TIME, "es_ES"); Time.now => mar oct 23 13:15:19 -0700 2007 # in Italian: >> Locale.setlocale(Locale::LC_TIME, "it_IT"); Time.now => mar ott 23 13:15:27 -0700 2007 -- Posted via http://www.ruby-forum.com/.