home · contact · privacy
Re-structure for unittest usage.
[plomtask] / days.py
diff --git a/days.py b/days.py
deleted file mode 100644 (file)
index 8db9f15..0000000
--- a/days.py
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/usr/bin/env python3
-"""Collecting Day and date-related items."""
-from datetime import datetime
-
-DATE_FORMAT = '%Y-%m-%d'
-
-
-class Day:
-    """Individual days defined by their dates."""
-
-    def __init__(self, date: str):
-        self.date = date
-        self.datetime = datetime.strptime(date, DATE_FORMAT)
-
-    @property
-    def weekday(self):
-        """Return what weekday matches self.date."""
-        return self.datetime.strftime('%A')
-
-    def __eq__(self, other: object):
-        return isinstance(other, self.__class__) and self.date == other.date
-
-    def __lt__(self, other):
-        return self.date < other.date