Wrap pendulum's datetime parser
Committed 8ea2ba
--- a/web/framework/__init__.py
+++ b/web/framework/__init__.py
return handler
+def parse_dt(dt: str) -> pendulum.datetime.DateTime:
+ """Return the current datetime."""
+ return pendulum.parse(dt)
+
+
def now() -> pendulum.datetime.DateTime:
"""Return the current datetime."""
return pendulum.now("UTC")