PHP 8.2.30
Preview: _common.py Size: 932 B
/proc/thread-self/root/proc/self/root/opt/imunify360/venv/lib/python3.11/site-packages/dateutil/_common.py

"""
Common code used in multiple modules.
"""


class weekday(object):
    __slots__ = ["weekday", "n"]

    def __init__(self, weekday, n=None):
        self.weekday = weekday
        self.n = n

    def __call__(self, n):
        if n == self.n:
            return self
        else:
            return self.__class__(self.weekday, n)

    def __eq__(self, other):
        try:
            if self.weekday != other.weekday or self.n != other.n:
                return False
        except AttributeError:
            return False
        return True

    def __hash__(self):
        return hash((
          self.weekday,
          self.n,
        ))

    def __ne__(self, other):
        return not (self == other)

    def __repr__(self):
        s = ("MO", "TU", "WE", "TH", "FR", "SA", "SU")[self.weekday]
        if not self.n:
            return s
        else:
            return "%s(%+d)" % (s, self.n)

# vim:ts=4:sw=4:et

Directory Contents

Dirs: 4 × Files: 8

Name Size Perms Modified Actions
parser DIR
- drwxr-xr-x 2026-03-03 08:59:01
Edit Download
tz DIR
- drwxr-xr-x 2026-03-03 08:59:01
Edit Download
zoneinfo DIR
- drwxr-xr-x 2026-03-03 08:59:01
Edit Download
- drwxr-xr-x 2026-03-03 08:59:01
Edit Download
2.62 KB lrw-r--r-- 2026-02-13 12:40:40
Edit Download
24.32 KB lrw-r--r-- 2026-02-13 12:40:40
Edit Download
65.00 KB lrw-r--r-- 2026-02-13 12:40:40
Edit Download
59 B lrw-r--r-- 2026-02-13 12:40:40
Edit Download
1.92 KB lrw-r--r-- 2026-02-13 12:40:40
Edit Download
932 B lrw-r--r-- 2026-02-13 12:40:40
Edit Download
142 B lrw-r--r-- 2026-02-13 12:40:40
Edit Download
222 B lrw-r--r-- 2026-02-13 12:40:40
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).