From: Paul Lutus Date: 2006-11-27T04:50:09+09:00 Subject: Re: Timestamp dblack@wobblini.net wrote: > Hi -- > > On Mon, 27 Nov 2006, Paul Lutus wrote: > >> Srinivas Sa wrote: >> >>> Sorry for not being clear; I am trying to work on merging subtitle files >>> which holds the subtitles of a movie. They have the HH:MM:SS,nnn and >>> sentence that need to be flashed at that moment on the screen. >> >> Break it down for us. What does ",nnn" signify? > > Fractions of a second: > > irb(main):020:0> Time.parse("10:53:44,12") + 0.87 > => Sun Nov 26 10:53:44 -0500 2006 > irb(main):021:0> Time.parse("10:53:44,12") + 0.88 > => Sun Nov 26 10:53:45 -0500 2006 Milliseconds, then, since they appeared as three-digit integers. -- Paul Lutus http://www.arachnoid.com