Skip to content

Commit

Permalink
Rewrite gregorian calendar docstring that incorrectly ref'ed Hijri
Browse files Browse the repository at this point in the history
  • Loading branch information
rlskoeser committed Dec 7, 2024
1 parent 333e740 commit b7ae594
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/undate/converters/calendars/gregorian.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ def max_day(self, year: int, month: int) -> int:
return max_day

def to_gregorian(self, year, month, day) -> tuple[int, int, int]:
"""Convert a Hijri date, specified by year, month, and day,
to the Gregorian equivalent date. Returns a tuple of year, month, day.
"""Convert to Gregorian date. This returns the specified by year, month,
and day unchanged, but is provided for consistency since all calendar
converters need to support conversion to Gregorian calendar for
a common point of comparison.
"""

return (year, month, day)

0 comments on commit b7ae594

Please sign in to comment.