repl.txt (1041B)
1 2 {{alias}}( [month[, day, year]] ) 3 Returns the day of the quarter. 4 5 By default, the function returns the day of the quarter for the current date 6 (according to local time). To determine the day of the quarter for a 7 particular day, provide `month`, `day`, and `year` arguments. 8 9 A `month` may be either a month's integer value, three letter abbreviation, 10 or full name (case insensitive). 11 12 The function also accepts a `Date` object. 13 14 Parameters 15 ---------- 16 month: string|integer|Date (optional) 17 Month (or `Date`). 18 19 day: integer (optional) 20 Day. 21 22 year: integer (optional) 23 Year. 24 25 Returns 26 ------- 27 out: integer 28 Day of the quarter. 29 30 Examples 31 -------- 32 > var day = {{alias}}() 33 <number> 34 > day = {{alias}}( new Date() ) 35 <number> 36 > day = {{alias}}( 12, 31, 2017 ) 37 92 38 39 // Other ways to supply month: 40 > day = {{alias}}( 'dec', 31, 2017 ) 41 92 42 > day = {{alias}}( 'december', 31, 2017 ) 43 92 44 45 See Also 46 -------- 47