diff --git a/fgs/datatypes.py b/fgs/datatypes.py index ba45680575b1e5f8b6e1b0f0fc4587fb9ed06798..a235b1a67e0b6497bac3b33f4717f00396eab08e 100644 --- a/fgs/datatypes.py +++ b/fgs/datatypes.py @@ -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()