Adjust to a business day / 休みの日の前倒し・後ろ倒し
adjust_to_business_dayIf the date is a business day, return it as is; otherwise move to the next ("next") or previous ("previous") business day. Useful for payment due dates that fall on holidays. / 営業日ならその日、休みなら次(next)または前(previous)の営業日。支払日が休みのときなどに使う。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | Date (YYYY-MM-DD) / 日付 | |
| calendar | No | "standard": weekends and national holidays are closed. "bank": also closed Dec 31 - Jan 3 (Japanese bank holidays). / standard:土日・祝日が休み。bank:加えて12月31日〜1月3日が休み(銀行の休業日) | standard |
| direction | No | next = 後ろ倒し, previous = 前倒し | next |
| extra_holidays | No | Additional company-specific closed days (e.g. summer break). / 会社独自の休み | |
| extra_business_days | No | Days treated as business days even if they are weekends or holidays. / 休日でも営業日とする日 |