Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/b/a/babelsubs-HEAD/babelsubs/generators/ssa.py   babelsubs(Download)
        else:
            components = utils.milliseconds_to_time_clock_components(
            milliseconds,
            unsynced_val=utils.UNSYNCED_TIME_ONE_HOUR_DIGIT,
            use_centiseconds=True)

src/b/a/babelsubs-HEAD/babelsubs/storage.py   babelsubs(Download)
        return None
    expression = '%(hours)02d:%(minutes)02d:%(seconds)02d.%(milliseconds)03d'
    return expression % utils.milliseconds_to_time_clock_components(milliseconds)
 
def to_clock_time(time_expression, tick_rate=None):

src/b/a/babelsubs-HEAD/babelsubs/tests/test_storage.py   babelsubs(Download)
    def test_split(self):
        # should looke like 1h:10:20:200
        milliseconds  = (((1 * 3600 ) + (10 * 60 ) + (20 )) * 1000 )  + 200
        components = main_utils.milliseconds_to_time_clock_components(milliseconds)
        self.assertEquals(dict(hours=1,minutes=10, seconds=20, milliseconds=200), components)
 
    def test_rounding(self):
        milliseconds  = (((1 * 3600 ) + (10 * 60 ) + (20 )) * 1000 )  + 200.40
        components = main_utils.milliseconds_to_time_clock_components(milliseconds)