From 0ef6409f75699d52151ffd077031824619ad00bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Wed, 8 Mar 2023 19:20:19 +0800 Subject: [PATCH] Revised the documentation of the PeriodDescription utility. --- src/accounting/report/period.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/accounting/report/period.py b/src/accounting/report/period.py index a09e10f..43850b0 100644 --- a/src/accounting/report/period.py +++ b/src/accounting/report/period.py @@ -278,15 +278,15 @@ class PeriodDescription: return self.__get_day_desc() def __get_since_desc(self) -> str: - """Returns the description without the end time. + """Returns the description without the end day. - :return: The description without the end time. + :return: The description without the end day. """ def get_start_desc() -> str: - """Returns the description of the start time. + """Returns the description of the start day. - :return: The description of the start time. + :return: The description of the start day. """ if self.__start.month == 1 and self.__start.day == 1: return str(self.__start.year) @@ -297,14 +297,14 @@ class PeriodDescription: return gettext("since %(start)s", start=get_start_desc()) def __get_until_desc(self) -> str: - """Returns the description without the start time. + """Returns the description without the start day. - :return: The description without the start time. + :return: The description without the start day. """ def get_end_desc() -> str: - """Returns the description of the end time. + """Returns the description of the end day. - :return: The description of the end time. + :return: The description of the end day. """ if self.__end.month == 12 and self.__end.day == 31: return str(self.__end.year)