-
-
Notifications
You must be signed in to change notification settings - Fork 2
incendium.date.get_first_day_of_month
César Román edited this page Apr 30, 2024
·
2 revisions
Get first day of the month at midnight given the date.
Args:
- date(
Date
): The date.
Returns:
- Date: The date set to the first date of the month at midnight.
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_first_day_of_month(now))
# Thu Sep 01 00:00:00 PDT 2022