This function is available in the datetime module only from Python >= 2.5.
(s, fmt=None)
| 63 | |
| 64 | |
| 65 | def strptime(s, fmt=None): |
| 66 | """ |
| 67 | This function is available in the datetime module only from Python >= |
| 68 | 2.5. |
| 69 | |
| 70 | """ |
| 71 | if type(s) == bytes: |
| 72 | s = s.decode("latin1") |
| 73 | return datetime(*time.strptime(s, fmt)[:3]) |
| 74 | |
| 75 | |
| 76 | class RoundtripTest: |
no test coverage detected