repl.txt (1032B)
1 2 {{alias}}( [month[, day, year]] ) 3 Returns the day of the year. 4 5 By default, the function returns the day of the year for the current date 6 (according to local time). To determine the day of the year for a particular 7 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 year. 29 30 Examples 31 -------- 32 > var day = {{alias}}() 33 <number> 34 > day = {{alias}}( new Date() ) 35 <number> 36 > day = {{alias}}( 12, 31, 2016 ) 37 366 38 39 // Other ways to supply month: 40 > day = {{alias}}( 'dec', 31, 2016 ) 41 366 42 > day = {{alias}}( 'december', 31, 2016 ) 43 366 44 45 See Also 46 -------- 47