Año y trimestre fiscal
fiscal-periodCalcula, para una fecha y el mes de inicio del año fiscal, el año, trimestre y mes fiscal con sus límites. Cuándo: un resultado de fechas, zonas horarias o calendario tiene que ser exacto (desfases, horario de verano, fines de mes, bisiestos). No para: describir un año y mes (month-info). Efectos secundarios: ninguno (solo lectura, sin red, sin estado guardado). Determinista: la misma entrada da la misma salida. Límites: entrada JSON de hasta 64 KB, 1 s por llamada, resultado de hasta 1 MB.
EN: Computes, for a date and the month the fiscal year starts, the fiscal year (named by its ending calendar year or its starting year), fiscal quarter, fiscal month and period bounds. When: a date, time-zone or calendar result has to be exact (offsets, daylight saving, month ends, leap years). Not for: describing a year and month (month-info). Side effects: none (read-only, no network access, no stored state). Deterministic: the same input gives the same output. [EN completo / full EN: inputSchema.description]
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | Date YYYY-MM-DD (string; required; up to 10 chars; format date). | |
| naming | No | Name FY by (optional; one of: end_year, start_year; default "end_year"). | end_year |
| start_month | No | Fiscal year start month 1-12 (integer; optional; default 1; min 1; max 12). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year_end | No | ||
| year_start | No | ||
| fiscal_year | No | ||
| quarter_end | No | ||
| fiscal_month | No | ||
| quarter_start | No | ||
| fiscal_quarter | No |