Semana ISO de una fecha
date-iso-weekConvierte una fecha a semana ISO 8601 (AAAA-Www-D) o una semana ISO a su rango de fechas. 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: Converts a date to its ISO 8601 week date (YYYY-Www-D) or an ISO week (year + week) to its Monday-Sunday date range; also reports weeks in that ISO year. 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. Limits: JSON input up to 64 KB, 1 s per call, result up to 1 MB.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Date to convert (string; optional; up to 10 chars; format date). | |
| week | No | ISO week 1-53 (integer; optional; min 1; max 53). | |
| iso_year | No | ISO week-numbering year (integer; optional; min 1; max 9999). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | ||
| iso | No | ||
| week | No | ||
| start | No | ||
| weekday | No | ||
| iso_year | No | ||
| weeks_in_year | No |