Skip to content

incendium.date.get_first_day_of_month

César Román edited this page Apr 30, 2024 · 2 revisions

Description

Get first day of the month at midnight given the date.

Syntax

incendium.date.get_first_day_of_month(date)

Args:

  • date(Date): The date.

Returns:

  • Date: The date set to the first date of the month at midnight.

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_first_day_of_month(now))
# Thu Sep 01 00:00:00 PDT 2022
Clone this wiki locally