Lines Matching refs:dtstr
2595 dtstr = "{}{:02d}{:02d} {}".format(sign, hours, minutes, tzname)
2596 dt = strptime(dtstr, "%z %Z")
2600 dtstr, fmt = "+1234 UTC", "%z %Z"
2601 dt = strptime(dtstr, fmt)
2605 self.assertEqual(dt.strftime(fmt), dtstr)
2912 dtstr = dt.isoformat(sep=sep)
2914 with self.subTest(dtstr=dtstr):
2915 dt_rt = self.theclass.fromisoformat(dtstr)
2937 dtstr = dt.isoformat()
2939 with self.subTest(tstr=dtstr):
2940 dt_rt = self.theclass.fromisoformat(dtstr)
2954 dtstr = dt.isoformat(sep=sep)
2956 with self.subTest(dtstr=dtstr):
2957 dt_rt = self.theclass.fromisoformat(dtstr)
2965 dtstr = dt.isoformat(sep=sep)
2967 with self.subTest(dtstr=dtstr):
2968 dt_rt = self.theclass.fromisoformat(dtstr)
2992 dtstr = dt.isoformat(timespec=ts)
2993 with self.subTest(dtstr=dtstr):
2994 dt_rt = self.theclass.fromisoformat(dtstr)
3038 dtstr = "2018-01-03\ud80001:0113"
3040 with self.assertRaisesRegex(ValueError, re.escape(repr(dtstr))):
3041 self.theclass.fromisoformat(dtstr)