matchTimeSheet
Checks if the current time is in the given sheet, returns with a Boolean value.
Description
vcc.matchTimesheet(sheets)
Checks if the current time is in the given sheet, returns with a Boolean value.
Parameters
sheets
(array) An array of sheet objects, each with optional parameters:
year
(number)month
(number): month to match, indexing starts from 1, (1 means January)day
(number)dow
(string): days of the week e.g., “60” means Sat. & Sun.timefrom
(string): e.g. “09:00”- timeto` (string): e.g. “17:00”
Return values
none
Example
const sheetsToMatch = [
{ month: 5, day: 1 },
{ year: 2025, month: 5, day: 2 },
{ month: 12, day: 25 },
{ dow: "123", timefrom: "09:00:00", timeto: "17:00:00" },
];
if (vcc.matchTimesheet(sheetsToMatch)) {
// TODO do something
return;
}
Comments
Can’t find what you need? Use the comment section below to connect with others, get answers from our experts, or share your ideas with us.
There are no comments yet.