def get_dicom_time_from(dtime):
    """Format the current time inside the input datetime to a dicom str format"""
    try:
        res = dtime.strftime("%H%M%S.%f")
        return res

    except Exception:
        print("get_dicom_time_from: could not convert")
        return '000000.000000'