datetime.fiscal_quarter
Determine the fiscal quarter number and its start and end dates for a given date and country, using country-specific fiscal year starts; statutory filing deadlines are not included.
Instructions
기준일 as_of(YYYY-MM-DD)가 속한 회계분기 번호 quarter(1~4)와 시작·종료일을 구한다. country(KR | US | JP | UK, 기본 KR)의 회계연도 시작일에서 3개월씩 끊으며 시작일의 일자를 유지한다(UK 는 분기마다 6일 시작). 부가세 신고 등 법정 신고기한은 계산하지 않는다.
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 | ||
| quarter | Yes | ||
| end_date | Yes | ||
| start_date | Yes | ||
| fiscal_year | Yes |