y'know, since this is only used here, we should maybe stick an `if emitter_type == 'date'` before that assert, right? This is the only place where window was used, I believe.