From: Axel Etzold Date: 2008-05-07T18:59:19+09:00 Subject: Re: timestamp Dear Sunny, -------- Original-Nachricht -------- > Datum: Wed, 7 May 2008 18:09:03 +0900 > Von: Sunny Bogawat > An: ruby-talk@ruby-lang.org > Betreff: timestamp > i want attaches a timestamps to file for this i doing Time.now_filename > but it gives error because time has a space sum it so i need some > another mechanism using which i generate timestamps and attached to > timestamps. > -- > Posted via http://www.ruby-forum.com/. maybe you attach Time.now.to_s.gsub(/ /,'_') ? There are also methods to extract the day, the hour or the second from a Time object: www.ruby-doc.org/core/classes/Time.html Best regards, Axel -- 249 Spiele f�r nur 1 Preis. Die GMX Spieleflatrate schon ab 9,90 Euro. Neu: Asterix bei den Olympischen Spielen: http://flat.games.gmx.de