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 locale

The locale to use (e.g. 'en' or 'ar')

Return value

BOOLEAN

If it is weekend for the given locale at the given time