IsWeekend (open)
Check if the given time is in a weekend for the given locale
Syntax
LOADLIB "wh::util/localization.whlib";
BOOLEAN FUNCTION IsWeekend(DATETIME date, STRING locale)Parameters
DATETIME date(Local) date and time to check
STRING localeThe locale to use (e.g. 'en' or 'ar')
Return value
BOOLEANIf it is weekend for the given locale at the given time