calisworktime() Function

Function

calisworktime( datetime, calendar_name )

This returns whether or not the given Date and Time is within working hours, according to the calendars defined for the system.

Parameters

Keyword Type Description

datetime

Date and Time

The Date and Time to test.

calendar\_name

Text

This optional parameter accepts the name of a system calendar; otherwise, the default calendar is used.

Returns

Boolean

Usage considerations

Passing a calendar name allows you to validate working time using an alternate system calendar, if you have multiple calendars configured.

See also: Process Calendar Settings

Examples

You can experiment with this function in the test box below.

Test Input

calisworktime(datetime(2011,12,13,20,0,0)) returns false

Open in Github Built: Tue, Sep 14, 2021 (11:54:22 AM)

On This Page

FEEDBACK