diff --git a/HISTORY.rst b/HISTORY.rst
index 985360a..7b57b97 100644
--- a/HISTORY.rst
+++ b/HISTORY.rst
@@ -7,6 +7,8 @@ Pending Release
 ---------------
 
 * New release notes here
+* Now interprets day 7 as Sunday as well as 0, like Linux crontab parsers -
+  thanks @vetyy.
 
 1.0.0 (2015-07-28)
 ------------------
diff --git a/pretty_cron/api.py b/pretty_cron/api.py
index 14af101..f7ac1d0 100644
--- a/pretty_cron/api.py
+++ b/pretty_cron/api.py
@@ -76,6 +76,7 @@ _WEEKDAYS = {
     4: "Thursday",
     5: "Friday",
     6: "Saturday",
+    7: "Sunday",
 }
 
 

Missing key in _WEEKDAYS
Hello,

linux crontab allows users to set sunday as 0 or 7 (its same for crontab parser). When I was parsing some of my users cron settings I got key_error exception when they were using this syntax (7 as for sunday), you might consider adding this. (I have currently monkey patched that for time being)

Thanks

diff --git a/tests/test_prettify.py b/tests/test_prettify.py
index cec1af2..df46049 100644
--- a/tests/test_prettify.py
+++ b/tests/test_prettify.py
@@ -28,6 +28,9 @@ class PrettyCronTest(unittest.TestCase):
     def test_weekly(self):
         assert pc("0 0 * * 0") == "At 00:00 every Sunday"
 
+    def test_day_7_is_sunday(self):
+        assert pc("0 0 * * 7") == "At 00:00 every Sunday"
+
     def test_monthly_and_weekly(self):
         assert (
             pc("0 0 1 * 1") ==

pip install -e .[dev]
parse_log_pytest
requirements.txt
3.5
requirements.txt
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
bleach==4.1.0
certifi==2021.5.30
cffi==1.15.1
charset-normalizer==2.0.12
colorama==0.4.5
coverage==6.2
cryptography==40.0.2
docutils==0.18.1
idna==3.10
importlib-metadata==4.8.3
importlib-resources==5.4.0
jeepney==0.7.1
keyring==23.4.1
packaging==21.3
pkginfo==1.10.0
-e git+https://github.com/adamchainz/pretty-cron.git@ec7be5a9f853342ded46342eb90fdc0c69c06f68#egg=pretty_cron
py==1.11.0
pycparser==2.21
Pygments==2.14.0
pyparsing==3.1.4
pytest==2.8.7
readme-renderer==34.0
requests==2.27.1
requests-toolbelt==1.0.0
rfc3986==1.5.0
SecretStorage==3.3.3
six==1.17.0
tqdm==4.64.1
twine==3.8.0
typing_extensions==4.1.1
urllib3==1.26.20
webencodings==0.5.1
zipp==3.6.0

name: pretty-cron
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2021.5.30=py36h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.3=he6710b0_2
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - pip=21.2.2=py36h06a4308_0
  - python=3.6.13=h12debd9_1
  - readline=8.2=h5eee18b_0
  - setuptools=58.0.4=py36h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - wheel=0.37.1=pyhd3eb1b0_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - bleach==4.1.0
      - cffi==1.15.1
      - charset-normalizer==2.0.12
      - colorama==0.4.5
      - coverage==6.2
      - cryptography==40.0.2
      - docutils==0.18.1
      - idna==3.10
      - importlib-metadata==4.8.3
      - importlib-resources==5.4.0
      - jeepney==0.7.1
      - keyring==23.4.1
      - packaging==21.3
      - pkginfo==1.10.0
      - py==1.11.0
      - pycparser==2.21
      - pygments==2.14.0
      - pyparsing==3.1.4
      - pytest==2.8.7
      - readme-renderer==34.0
      - requests==2.27.1
      - requests-toolbelt==1.0.0
      - rfc3986==1.5.0
      - secretstorage==3.3.3
      - six==1.17.0
      - tqdm==4.64.1
      - twine==3.8.0
      - typing-extensions==4.1.1
      - urllib3==1.26.20
      - webencodings==0.5.1
      - zipp==3.6.0
prefix: /opt/conda/envs/pretty-cron

tests/test_prettify.py::PrettyCronTest::test_day_7_is_sunday
tests/test_prettify.py::PrettyCronTest::test_continuous tests/test_prettify.py::PrettyCronTest::test_daily tests/test_prettify.py::PrettyCronTest::test_every_day_in_month tests/test_prettify.py::PrettyCronTest::test_every_specific_day_in_month tests/test_prettify.py::PrettyCronTest::test_every_specific_day_in_month_and_weekly tests/test_prettify.py::PrettyCronTest::test_hourly tests/test_prettify.py::PrettyCronTest::test_invalid_unchanged tests/test_prettify.py::PrettyCronTest::test_minutely tests/test_prettify.py::PrettyCronTest::test_monthly_and_weekly tests/test_prettify.py::PrettyCronTest::test_nonsense_unchanged tests/test_prettify.py::PrettyCronTest::test_one_day_in_month tests/test_prettify.py::PrettyCronTest::test_one_day_in_month_11th tests/test_prettify.py::PrettyCronTest::test_one_day_in_month_21st tests/test_prettify.py::PrettyCronTest::test_one_day_in_month_2nd tests/test_prettify.py::PrettyCronTest::test_unsupported tests/test_prettify.py::PrettyCronTest::test_weekly tests/test_prettify.py::PrettyCronTest::test_yearly
HISTORY.rst pretty_cron/api.py
HISTORY.rst pretty_cron/api.py