From: dblack@... Date: 2006-11-27T05:55:48+09:00 Subject: Re: Timestamp Hi -- On Mon, 27 Nov 2006, Paul Lutus wrote: > 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. Actually the whole thing (44,12 or 23,555 or whatever) is one float, using a comma separator instead of a dot. The comma is the "preferred" separator in this context in the ISO 8601 standard, so I imagine that's being followed here. 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