def test_convert_date_time_1904(self):

        self.worksheet.date_1904 = True
        self.worksheet.epoch = datetime.datetime(1904, 1, 1)

        for excel_date in self.excel_1904_dates:
            date = datetime.datetime.strptime(excel_date[0], "%Y-%m-%dT")

            got = self.worksheet._convert_date_time(date)
            exp = excel_date[1]

            self.assertEqual(got, exp)
Test the _convert_date_time() method with 1904 date system.
dataset/ETHPy150Open jmcnamara/XlsxWriter/xlsxwriter/test/worksheet/test_date_time_02.py/TestConvertDateTime.test_convert_date_time_1904