(self)
| 159 | |
| 160 | class ToDatetimeISO8601: |
| 161 | def setup(self): |
| 162 | rng = date_range(start="1/1/2000", periods=20000, freq="h") |
| 163 | self.strings = rng.strftime("%Y-%m-%d %H:%M:%S").tolist() |
| 164 | self.strings_nosep = rng.strftime("%Y%m%d %H:%M:%S").tolist() |
| 165 | self.strings_tz_space = [ |
| 166 | x.strftime("%Y-%m-%d %H:%M:%S") + " -0800" for x in rng |
| 167 | ] |
| 168 | self.strings_zero_tz = [x.strftime("%Y-%m-%d %H:%M:%S") + "Z" for x in rng] |
| 169 | |
| 170 | def time_iso8601(self): |
| 171 | to_datetime(self.strings) |
nothing calls this directly
no test coverage detected