businessDay#

swordfish.function.businessDay()#

If X is a business day (Monday to Friday), return date(X). Otherwise, return the most recent business day. If parameter offset is specified, the result is updated every n business days. Parameter offset works only if parameter n>1.

Parameters:
  • X (Constant) – A scalar/vector of data type DATE, DATEHOUR, DATETIME, TIMESTAMP or NANOTIMESTAMP.

  • offset (Constant, optional) – A scalar of the same data type as X, by default DFLT. It must be no greater than the minimum value of X. The default value is the minimum value of X.

  • n (Constant, optional) – A positive integer, by default DFLT