Calendar activities packages will contain two activities, one to get holiday list from specified date range and the other one to calculate the next N days business date given a start date.
Holiday data will be stored in local since most of the client environments have the internet access restriction. It would be more reliable to retrieve the local data. The supported date ranges from year 1995 to 2034
1.Get Public Holiday Activity
Input: FromDate, ToDate, CountryCd
Output: Hoiday List (List of dictionaries each of which contains three key pair values: “YMD”,“Weekday”,“Description”)
2.Business Day Calculator
Input: CountryCd(e.g. “JP”), Start(e.g.2018-05-02), Days(e.g. 13, use negative number to indicate past day)
Output: Target(e.g.2018-05-13)
I am using the calendar package now. one issue i faced like below.
i want setting my own company holiday day like “2017.12.31 ~ 2018.1.3”, after that when using “Business day calculator”, package can skip it automatically and give the correct business day back.
Wish this functionality could be add into package in the future:star_struck:.
Please excuse the stupid question. I downloaded the calendar.activities package and tried to run @calvin.he example workflow using “GB” instead of “JP”.
Are the holiday files not loaded when you install the package? If so how do you get them couldn’t see anything on the nager website about installing holiday csv files
OK so in the folder are CA JP and US holidays If I can make a GB one I should be OK.
I’m trying to make my own GB calendar in the hope that the calendar activity will just work for GB once the calendar file has been created.
One problem is that the first 3 columns are Year Month Day, the next one is, I don’t know (it’s probably obviously but I just don’t know what that column is) Can anyone let me know what that represents and is it important for the function to work.
Hi Calvin.he,
Is there any way that I can change the number of workweek? I need to use 6 business days per week instead of 5 days workweek.
Thanks in advance!