JP Holiday-5.621.2100
1. Parameter setting
Basic Settings
- Operation :
Select the operation of the plug-in.
- Check Holiday : Checks if the date entered is a holiday.
- Get Holiday Name : Outputs the name of the holiday.
- Date : Outputs the name of the holiday.
Enter a date.
Various input formats are supported, examples include
Sample: "2022/02/22", "2022-02-22", "20220222", "2 Feb 2022"
Extended Settings (Advanced)
- Include Weekends :.
Select whether Saturday and Sunday are considered as holidays.
- Not Include: Non-holidays are not considered as holidays.
- Only Sunday: Include holidays and Sundays as holidays.
- Saturday & Sunday: Holidays, Saturday, and Sunday are counted as holidays.
- Add Setting File :
Select a file to add holidays. The file should be described as follows.
Be sure to include "[HOLIDAYS]" at the beginning.
The date should be entered in the same way as the "Date" entry, and the format The format of the date can be left to your own discretion. The format of the date can be as you wish.
Here, the file name is "settings.ini", but "holidays.txt" is also acceptable. Save the file as a text file.
[HOLIDAYS]
2023/06/19: TestVacation1
2023/06/30: TestVacation2
2. Return Value
- Result Type
- String : Boolean / String
- CSV: Boolean / String
- File : Boolean / String
3. Example
- check if July 22, 2021 is a holiday
- Date: 7/22/2021
- Execution Result: True
- check the name of the holiday on July 22, 2021
- Date: 7/22/2021
- Execution Result: Sea Day
- register June 21, 2023 as a holiday and check the name
- Date: 2023-06-21
- Add Setting File: C:\Users\Windows\Documents\my_holiday.txt
- [HOLIDAYS] 2023/06/21: Summer Solstice
- Execution Result:
Summer Solstice