datetime.fiscal_year
Calculates the fiscal year label and start/end dates for a given as_of date and country (KR, US, JP, UK), helping determine fixed country-based fiscal periods.
Instructions
기준일 as_of(YYYY-MM-DD)가 속한 회계연도의 라벨 fiscal_year 와 시작·종료일을 구한다. country 는 KR | US(1/112/31), JP(4/1다음 해 3/31), UK(4/6~다음 해 4/5)이며 라벨은 시작일이 속한 해이다. 기업별 결산기는 반영하지 않으므로 고정 국가 기준 연도 판정에만 쓴다.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as_of | Yes | ||
| country | No | KR |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _meta | No | 서버가 붙이는 영수증(integrity), 엔진, 힌트 | |
| trace | Yes | 계산 근거(tool, formula, inputs, steps, output) | |
| country | Yes | ||
| end_date | Yes | ||
| start_date | Yes | ||
| fiscal_year | Yes |