> > In the source data I'm stuck with, the timestamps are of the form
> > "40076.185700". Now I know this is some valid Microsoft format,
> > because if I take that number, paste it into Excel, and format it as a
> > date, I get: "9/20/09 4:27 AM", which is what I would expect.
> >
> > What I'm trying to do is parse these dates in the source format and
> > convert them into a Ruby DateTime object.
> >
> > Has anyone seen this format before, and can you help me figure out how
> > to parse it into Ruby?
Put the numbers 0 and 1 into excel and format them as dates. Call the
results MS_date_0 and MS_date_1. Set these up as constants in ruby and
you should be able to write:
MS_date_0 + x*(MS_date_1 - MS_date_0)
To recover the date corresponding to some unknown date x.
-- Markus