In every Star Trek series, the cast don’t only travel through space, but also through time. Since time travel is a delicate and dangerous enterprise, the UFP has a special agency to deal with it, the Department of Temporal Investigation. They’re always on time and they don’t like jokes.