defined year day in a better way
This commit is contained in:
parent
f33ffd659b
commit
08c74c36e5
@ -95,7 +95,9 @@ class FixedDate:
|
||||
|
||||
@property
|
||||
def is_year_day(self) -> bool:
|
||||
return self.month == 14 and self.day_of_month == 1
|
||||
if self.is_leap_year:
|
||||
return self.day_of_year == 366
|
||||
return self.day_of_year == 365
|
||||
|
||||
@property
|
||||
def week_of_month(self) -> int:
|
||||
|
Loading…
x
Reference in New Issue
Block a user