aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py
diff options
context:
space:
mode:
authorGravatar Sebastiaan Zeeff <[email protected]>2019-10-01 10:53:18 +0200
committerGravatar Sebastiaan Zeeff <[email protected]>2019-10-01 10:53:18 +0200
commit20da07562aab1d9041170f70e1a3dc086f5c1b90 (patch)
tree009657974cf59fd12c176af1b91bd8ad3b3512de /tests/helpers.py
parentAdjust development workflow inline with new `site` changes. (#464) (diff)
Add converter for ISO-formatted datetime strings
Related to https://github.com/python-discord/bot/issues/458 This commit adds a converter that automatically parses ISO-formatted datetime strings and returns a `datetime.datetime` object. It uses `dateutil.parser.isoparse` to do the heavy lifting, so it supports the same formats as this method. In addition, I have added tests that ensure that it accepts certain formats and added a description of these 'guaranteed' formats to the `ISODate.convert` docstring. This commit should make it easy to implement #485
Diffstat (limited to 'tests/helpers.py')
0 files changed, 0 insertions, 0 deletions