timestamp

Discussion in 'Ruby' started by Sunny Bogawat, May 7, 2008.

  1. 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/.
     
    Sunny Bogawat, May 7, 2008
    #1
    1. Advertising

  2. Sunny Bogawat

    Axel Etzold Guest

    Dear Sunny,
    -------- Original-Nachricht --------
    > Datum: Wed, 7 May 2008 18:09:03 +0900
    > Von: Sunny Bogawat <>
    > An:
    > 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
     
    Axel Etzold, May 7, 2008
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Manzoorul Hassan

    Convert to NTP Timestamp

    Manzoorul Hassan, Mar 11, 2005, in forum: Perl
    Replies:
    1
    Views:
    2,736
    Jim Gibson
    Mar 11, 2005
  2. Shawn

    displaying sybase timestamp

    Shawn, Jan 27, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    3,161
    Shawn
    Jan 27, 2004
  3. Greg Collins [MVP]

    File Timestamp and Saving Transformed XML to Server

    Greg Collins [MVP], Jul 8, 2004, in forum: ASP .Net
    Replies:
    6
    Views:
    469
    Greg Collins [MVP]
    Jul 12, 2004
  4. Roger Twomey

    Using SQL Server Timestamp

    Roger Twomey, Sep 10, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    23,798
    Greg Burns
    Sep 10, 2004
  5. =?Utf-8?B?bXliYXBweQ==?=
    Replies:
    7
    Views:
    13,093
    =?Utf-8?B?Zng=?=
    Oct 20, 2004
Loading...

Share This Page