From: dblack@... Date: 2006-11-27T04:02:02+09:00 Subject: Re: Timestamp 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 David -- David A. Black | dblack@wobblini.net Author of "Ruby for Rails" [1] | Ruby/Rails training & consultancy [3] DABlog (DAB's Weblog) [2] | Co-director, Ruby Central, Inc. [4] [1] http://www.manning.com/black | [3] http://www.rubypowerandlight.com [2] http://dablog.rubypal.com | [4] http://www.rubycentral.org