Source code for ebu_tt_live.clocks.local

from datetime import datetime, timedelta
from .base import Clock


[docs]class LocalMachineClock(Clock): _time_base = 'clock' _clock_mode = 'local'
[docs] def get_real_clock_time(self): now = datetime.now().time() return timedelta(hours=now.hour, minutes=now.minute, seconds=now.second, microseconds=now.microsecond)