quarternumber - extract quarter number from a date dataset

Syntax: float quarternumber(date d)
Description: Extract the quarter number of each element of d
  • Quarter 1 is from January 1st to March 31st
  • Quarter 2 is from April 1st to June 30th
  • Quarter 3 is from July 1st to September 30th
  • Quarter 4 is from October 1st to December 31st
Examples: d quarternumber(d)
13-JAN-2000
14-APR-2000
1
2
See also: todate, monthnumber, daynumber, yearnumber

quarterrange - return range of dates

Syntax: date quarterrange(string dates, float dstep)
Description: Return all the first days of the quarter that can be found within the extremes of dates starting with the first one and then with a step of dstep
Example: dates quarterrange(dates,1)
29/6/1970
25/12/1970
01-JUL-1970
01-OCT-1970
See also:

midquarterrange, monthrange, dayrange, yearrange

quit - quit Gsharp

Syntax: quit()
Description:

Quit Gsharp.

  • Gsharp quits with no warnings or requests for confirmation.

  • If you want to quit Gsharp and ask for confirmation then you can use the built-in callback - GuiFileExit.

Code Sample:
function CheckUser(string user)
  if (user="Wiekie")  quit();
endfunction
See also: break, stop, GuiFileExit

 

 

 

 

 

.