codecov[bot]: # [Codecov](https://codecov.io/gh/destag/at-date/pull/15?src=pr&el=h1) Report
> Merging [#15](https://codecov.io/gh/destag/at-date/pull/15?src=pr&el=desc) into [master](https://codecov.io/gh/destag/at-date/commit/dc4d4b9dc25ad7b4039bfd4b9dea771df23ee282?src=pr&el=desc) will **not change** coverage.
> The diff coverage is `n/a`.

[![Impacted file tree graph](https://codecov.io/gh/destag/at-date/pull/15/graphs/tree.svg?width=650&token=zT5lrR9jF6&height=150&src=pr)](https://codecov.io/gh/destag/at-date/pull/15?src=pr&el=tree)

```diff
@@           Coverage Diff           @@
##           master      #15   +/-   ##
=======================================
  Coverage   99.21%   99.21%           
=======================================
  Files           3        3           
  Lines         128      128           
=======================================
  Hits          127      127           
  Misses          1        1
```


| [Impacted Files](https://codecov.io/gh/destag/at-date/pull/15?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [atdate/atdate\_format.py](https://codecov.io/gh/destag/at-date/pull/15/diff?src=pr&el=tree#diff-YXRkYXRlL2F0ZGF0ZV9mb3JtYXQucHk=) | `100% <ø> (ø)` | :arrow_up: |

------

[Continue to review full report at Codecov](https://codecov.io/gh/destag/at-date/pull/15?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/destag/at-date/pull/15?src=pr&el=footer). Last update [dc4d4b9...7489498](https://codecov.io/gh/destag/at-date/pull/15?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).

diff --git a/atdate/atdate_format.py b/atdate/atdate_format.py
index 6749166..42e910b 100644
--- a/atdate/atdate_format.py
+++ b/atdate/atdate_format.py
@@ -7,6 +7,7 @@ format_string = r'''
          | date increment
          | nowspec
          | nowspec increment
+         | increment
 time: HR24CLOCK_HR_MIN                            -> _hr24clock_hr_min
     | HR24CLOCK_HOUR ":" MINUTE                   -> _hr24clock_hour_minute
     | WALLCLOCK_HR_MIN AM_PM                      -> _wallclock_hr_min_am_pm
diff --git a/docs/README.md b/docs/README.md
index bd6e1fc..b33fdbd 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -93,14 +93,20 @@ Valid at date string consists of tokens which can be in order:
 
 tokens|example
 ---|---
-time|17:32
-time date|17:32 11/22/2033
-time increment|17:32 next day
-time date increment|17:32 11/22/2033 next day
-date|11/22/2033
-date increment|11/22/2033 next month
-now|now
-now increment|now next day
+[time]|17:32
+[time] [date]|17:32 11/22/2033
+[time] [increment]|17:32 next day
+[time] [date] [increment]|17:32 11/22/2033 next day
+[date]|11/22/2033
+[date] [increment]|11/22/2033 next month
+[now]|now
+[now] [increment]|now next day
+[increment]|next month
+
+[time]: #time
+[date]: #date
+[increment]: #increment
+[now]: #now
 
 ### At date tokens
 

Add rule to parser to omit word 'now'
Parser now require string in format like `now next month`.

It would be good if word `now` would be optional and strings like `next month` would be parsed like one above.

This change requires adding rule to parser string and probably adding additional methods to **api.py**.
diff --git a/test/test_atdate.py b/test/test_atdate.py
index 5f1a4b8..fdbf0ce 100644
--- a/test/test_atdate.py
+++ b/test/test_atdate.py
@@ -206,3 +206,17 @@ def test_wallclock_hour_minute_am_pm():
     test_string = '02:01 pm'
     result = atdate.parse(test_string)
     assert result == datetime(2000, 7, 2, 14, 1, 0, 0)
+
+
+@freeze_time('2000-07-02 03:04:05')
+def test_next_month_without_now():
+    test_string = 'next month'
+    result = atdate.parse(test_string)
+    assert result == datetime(2000, 8, 2, 3, 4, 5, 0)
+
+
+@freeze_time('2000-07-02 03:04:05')
+def test_plus_one_day_without_now():
+    test_string = '+1days'
+    result = atdate.parse(test_string)
+    assert result == datetime(2000, 7, 3, 3, 4, 5, 0)

pip install -e .[dev]
parse_log_pytest
requirements.txt
pytest pytest-cov freezegun
pip install pipenv
3.6
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
-e git+https://github.com/destag/at-date.git@dc4d4b9dc25ad7b4039bfd4b9dea771df23ee282#egg=atdate
attrs==22.2.0
certifi==2021.5.30
coverage==6.2
distlib==0.3.9
filelock==3.4.1
freezegun==1.2.2
importlib-metadata==4.8.3
importlib-resources==5.4.0
iniconfig==1.1.1
lark-parser==0.12.0
packaging==21.3
pipenv==2022.4.8
platformdirs==2.4.0
pluggy==1.0.0
py==1.11.0
pyparsing==3.1.4
pytest==7.0.1
pytest-cov==4.0.0
python-dateutil==2.9.0.post0
six==1.17.0
tomli==1.2.3
typing_extensions==4.1.1
virtualenv==20.17.1
virtualenv-clone==0.5.7
zipp==3.6.0

name: at-date
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:
      - attrs==22.2.0
      - coverage==6.2
      - distlib==0.3.9
      - filelock==3.4.1
      - freezegun==1.2.2
      - importlib-metadata==4.8.3
      - importlib-resources==5.4.0
      - iniconfig==1.1.1
      - lark-parser==0.12.0
      - packaging==21.3
      - pipenv==2022.4.8
      - platformdirs==2.4.0
      - pluggy==1.0.0
      - py==1.11.0
      - pyparsing==3.1.4
      - pytest==7.0.1
      - pytest-cov==4.0.0
      - python-dateutil==2.9.0.post0
      - six==1.17.0
      - tomli==1.2.3
      - typing-extensions==4.1.1
      - virtualenv==20.17.1
      - virtualenv-clone==0.5.7
      - zipp==3.6.0
prefix: /opt/conda/envs/at-date

test/test_atdate.py::test_next_month_without_now test/test_atdate.py::test_plus_one_day_without_now
test/test_atdate.py::test_at_date_has_parse_attribute test/test_atdate.py::test_at_date_has_atdateparser_attribute test/test_atdate.py::test_parse_return_datetime_object test/test_atdate.py::test_at_noon_before_noon test/test_atdate.py::test_at_noon_after_noon test/test_atdate.py::test_at_noon_month_change test/test_atdate.py::test_at_noon_year_change test/test_atdate.py::test_at_midnight test/test_atdate.py::test_at_midnight_month_change test/test_atdate.py::test_at_midnight_year_change test/test_atdate.py::test_at_now test/test_atdate.py::test_at_now_next_minute_change_minute test/test_atdate.py::test_at_now_next_minutes test/test_atdate.py::test_at_now_next_minute_change_hour test/test_atdate.py::test_at_now_next_minute_change_day test/test_atdate.py::test_at_now_next_hour test/test_atdate.py::test_at_now_next_day test/test_atdate.py::test_at_now_next_week test/test_atdate.py::test_at_now_next_month test/test_atdate.py::test_at_now_next_year test/test_atdate.py::test_month_number_day_number test/test_atdate.py::test_month_name_day_number test/test_atdate.py::test_month_number_day_number_year_number test/test_atdate.py::test_day_number_month_number test/test_atdate.py::test_day_number_month_number_year_number test/test_atdate.py::test_inc_period test/test_atdate.py::test_hr24clock_hr_min test/test_atdate.py::test_hr24clock_hour_minute test/test_atdate.py::test_wallclock_hr_min_am_pm test/test_atdate.py::test_wallclock_hour_minute_am_pm
docs/README.md atdate/atdate_format.py
docs/README.md atdate/atdate_format.py