The show is set in some unspecified time in the mid-late 19th Century likely before the Meiji restoration evidenced by the lack of any developments to Japan's infrastructure at that time. Ohatsu mentions the Red Light District but the English term didn't originate until as early as 1888 in the West. For Japanese a common term "akasen" didn't become common use until the late 1950s.