repl.txt (864B)
1 2 {{alias}}( [value] ) 3 Returns the number of days in a year according to the Gregorian calendar. 4 5 By default, the function returns the number of days in the current year 6 (according to local time). To determine the number of days for a particular 7 year, provide either a year or a `Date` object. 8 9 The function's return value is a generalization and does **not** take into 10 account inaccuracies due to daylight savings conventions, crossing 11 timezones, or other complications with time and dates. 12 13 Parameters 14 ---------- 15 value: integer|Date (optional) 16 Year or `Date` object. 17 18 Returns 19 ------- 20 out: integer 21 Number of days in a year. 22 23 Examples 24 -------- 25 > var num = {{alias}}() 26 <number> 27 > num = {{alias}}( 2016 ) 28 366 29 > num = {{alias}}( 2017 ) 30 365 31 32 See Also 33 -------- 34