Skip to content

Commit 4e097a0

Browse files
committed
README formatting
1 parent d2c10e0 commit 4e097a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ we can also convert such collection to a list.
107107

108108
### Subscripting
109109

110-
The `Day`, `Week`, `Month, etc. classes have `.get_index_for_date(..)` and `.get_date_from_index(..)` methods, which allow to determine how many days, weeks, months, quarters and years are between `date.min` and the date given, and convert this back to a date. For example:
110+
The `Day`, `Week`, `Month, etc. classes have `.get_index_for_date()` and `.get_date_from_index()` methods, which allow to determine how many days, weeks, months, quarters and years are between `date.min` and the date given, and convert this back to a date. For example:
111111

112112
```
113113
Week.get_index_for_date(date(1958, 3, 25)) # 102123
@@ -230,7 +230,7 @@ class Decade(TimeunitKind):
230230

231231
this might be useful if the formatting is more advanced than what Python's date formatter can handle.
232232

233-
Furthermore, one implements the `.truncate(..)` class method to convert a date to the start of the date range, and the `_next(..)` which returns the first date for the next decade.
233+
Furthermore, one implements the `.truncate()` class method to convert a date to the start of the date range, and the `_next()` which returns the first date for the next decade.
234234

235235
With these functions, we have registered a new time unit.
236236

0 commit comments

Comments
 (0)