Skip to content
Snippets Groups Projects
Verified Commit 3c1b7452 authored by Jake's avatar Jake :speech_balloon:
Browse files

added support for formatted datetimes

parent 5395a661
Branches
No related tags found
No related merge requests found
......@@ -362,6 +362,10 @@ class Date:
def isoformat(self):
return self.dt.isoformat()
def strftime(self, formatstr):
# https://docs.python.org/3/library/datetime.html#strftime-and-strptime-format-codes
return self.dt.strftime(formatstr)
def __lt__(self, other):
return self.dt.timestamp() < other.dt.timestamp()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment