def timePrint(text, dt=None):
    '''Print to STDOUT with a datetime prefix. If no timestamp is provided,
    the current date and time will be used.'''

    if dt is None:
        now = datetime.datetime.now()
        dt = now.strftime('%H:%M:%S')

    writePrint("%s  %s" % (dt, text))
Print to STDOUT with a datetime prefix. If no timestamp is provided,
    the current date and time will be used.
recipes/Python/579096_vlcpy_stream_capture_scheduler/recipe-579096.py