-
-
Notifications
You must be signed in to change notification settings - Fork 2
incendium.date.get_last_day_of_month
César Román edited this page Apr 30, 2024
·
2 revisions
Get last day of the month at 11:59:59 PM given the date.
Args:
- date(
Date
): The date.
Returns:
- Date: The date set to the last day of the month at 11:59:59 PM.
None.
from __future__ import print_function
import incendium.date
import system.date
now = system.date.now()
# Sat Sep 03 15:42:18 PDT 2022
print(incendium.date.get_last_day_of_month(now))
# Fri Sep 30 23:59:59 PDT 2022