Lines Matching refs:dtstr
2697 dtstr = "{}{:02d}{:02d} {}".format(sign, hours, minutes, tzname)
2698 dt = strptime(dtstr, "%z %Z")
2702 dtstr, fmt = "+1234 UTC", "%z %Z"
2703 dt = strptime(dtstr, fmt)
2707 self.assertEqual(dt.strftime(fmt), dtstr)
3014 dtstr = dt.isoformat(sep=sep)
3016 with self.subTest(dtstr=dtstr):
3017 dt_rt = self.theclass.fromisoformat(dtstr)
3039 dtstr = dt.isoformat()
3041 with self.subTest(tstr=dtstr):
3042 dt_rt = self.theclass.fromisoformat(dtstr)
3056 dtstr = dt.isoformat(sep=sep)
3058 with self.subTest(dtstr=dtstr):
3059 dt_rt = self.theclass.fromisoformat(dtstr)
3067 dtstr = dt.isoformat(sep=sep)
3069 with self.subTest(dtstr=dtstr):
3070 dt_rt = self.theclass.fromisoformat(dtstr)
3094 dtstr = dt.isoformat(timespec=ts)
3095 with self.subTest(dtstr=dtstr):
3096 dt_rt = self.theclass.fromisoformat(dtstr)
3272 dtstr = "2018-01-03\ud80001:0113"
3274 with self.assertRaisesRegex(ValueError, re.escape(repr(dtstr))):
3275 self.theclass.fromisoformat(dtstr)