fy5253#

swordfish.function.fy5253()#

Using the 52-53 weeks in a fiscal year (4-4-5 calendar), it returns the start date of fiscal year which includes X.

  • If nearest=true, the last weekday which is closest to the last day of startingMonth will be used as the starting date of the fiscal year.

  • If nearest=false, the last weekday in startingMonth will be used as the starting date of the fiscal year.

If offset is specified, it means that starting from the offset, the result will be updated every n years. Note that offset can take effect only when n is greater than 1.

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

  • weekday (Constant, optional) – An integer between 0 and 6. 0 means Monday, 1 means Tuesday, …, and 6 means Sunday. The default value is 0.

  • startingMonth (Constant, optional) – An integer between 1 and 12 indicating the beginning month of a year. The default value is 1.

  • nearest (Constant, optional) – A Boolean value. The default value is true.

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

  • n (Constant, optional) – A positive integer.The default value is 1.