Both series take place during the Edo period but take very slight liberties in how that period actually played out.