Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > timestamp

Reply
Thread Tools

timestamp

 
 
Sunny Bogawat
Guest
Posts: n/a
 
      05-07-2008
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/.

 
Reply With Quote
 
 
 
 
Axel Etzold
Guest
Posts: n/a
 
      05-07-2008
Dear Sunny,
-------- Original-Nachricht --------
> Datum: Wed, 7 May 2008 18:09:03 +0900
> Von: Sunny Bogawat <(E-Mail Removed)>
> An: http://www.velocityreviews.com/forums/(E-Mail Removed)
> 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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert to NTP Timestamp Manzoorul Hassan Perl 1 03-11-2005 05:37 PM
filter ICMP timestamp request on Cisco router or PIX szehun@gmail.com Cisco 1 12-16-2004 09:44 AM
filter ICMP timestamp request on Cisco router or PIX szehun@gmail.com Cisco 0 12-16-2004 08:55 AM
PIX logging without timestamp Ste Cisco 2 09-04-2004 01:08 AM
log timestamp format Bill F Cisco 3 07-24-2003 05:40 AM



Advertisments