From: Harry Ohlsen Date: 2003-07-01T17:05:08+09:00 Subject: Re: Millisecond in time. Warren wrote: > Hi, > > I have 1056030443784 (which is a time in millisecond) but I need this > time in the "normal" format like 2003-06-26 12:54.22 Time has an "at" method that takes a number of seconds and returns a time, so you could do something like ... ms = 1056030443784 time = Time.at(ms / 1000) puts time It also takes a number of microseconds as a second argument, so you could also do time = Time.at(ms / 1000, (ms % 1000) * 1000) to get a more accurate time, if necessary. Apologies if my arithmetic is crap in the second example :-). H.