Month end

time_month_end

Calculate the last day of the current month using GNU date. Starts from the 27th of the current month and increments until the day rolls over, then returns the last valid date. Requires GNU date.

Exit codes

  • 0: Always

Output on stdout

  • Last day of the current month in YYYY-MM-DD format