Files
Mateusz Gruszczyński bd562b3da6 first commit
2026-07-13 13:19:26 +02:00

3 lines
155 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
def invoice_period(dt, split_day=15):
return f"{dt:%Y-%m}-01{split_day:02d}" if dt.day <= split_day else f"{dt:%Y-%m}-{split_day + 1:02d}koniec"