From: Sven Schott Date: 2009-11-19T12:31:07+09:00 Subject: Re: getting a timestamp --0016e64cda8c474d7f0478b0fd7b Content-Type: text/plain; charset=ISO-8859-1 Don't know if this is what you're looking for but whenever I need a serial-style timestamp (like for a filename). I just do this: Time.now.strftime("%Y%m%d%H%M%S") On Thu, Nov 19, 2009 at 2:19 PM, Reid Thompson wrote: > jp wrote: > >> Hi, >> >> I would like to get a timestamp from a Date object. What is the best >> aproach for this? >> >> thank you >> >> I think you want a DateTime or Time object, I believe a Date object only > represents a date, not a date and time unless perhaps 'date at midnight' > counts. > > > > --0016e64cda8c474d7f0478b0fd7b--