From: jp Date: 2009-11-19T18:11:02+09:00 Subject: Re: getting a timestamp On 19 Nov, 03:31, Sven Schott wrote: > [Note:  parts of this message were removed to make it a legal post.] > > 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. Hi, It's enough to have the milliseconds since a given date in the past, for example java has this: http://java.sun.com/j2se/1.5.0/docs/api/java/util/Date.html#getTime() It's there anything comparable in Ruby? Thanks