incendium.date.get_last_day_of_month - ignition-devs/incendium GitHub Wiki
Description
Get last day of the month at 11:59:59 PM given the date.
Syntax
incendium.date.get_last_day_of_month(date)
Args:
- date(
Date
): The date.
Returns:
- Date: The date set to the last day of the month at 11:59:59 PM.
Recommendations
None.
Code Examples
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