(date: DateValue)
| 168 | export function startOfMonth(date: CalendarDate): CalendarDate; |
| 169 | export function startOfMonth(date: DateValue): DateValue; |
| 170 | export function startOfMonth(date: DateValue): DateValue { |
| 171 | // Use `subtract` instead of `set` so we don't get constrained in an era. |
| 172 | return date.subtract({days: date.day - 1}); |
| 173 | } |
| 174 | |
| 175 | /** Returns the last date of the month for the given date. */ |
| 176 | export function endOfMonth(date: ZonedDateTime): ZonedDateTime; |
no test coverage detected