time-to-botec

Benchmark sampling in different programming languages
Log | Files | Refs | README

repl.txt (1217B)


      1 
      2 {{alias}}( [month[, year]] )
      3     Returns the number of seconds in a month.
      4 
      5     By default, the function returns the number of seconds in the current month
      6     of the current year (according to local time). To determine the number of
      7     seconds for a particular month and year, provide `month` and `year`
      8     arguments.
      9 
     10     A `month` may be either a month's integer value, three letter abbreviation,
     11     or full name (case insensitive).
     12 
     13     The function's return value is a generalization and does **not** take into
     14     account inaccuracies due to daylight savings conventions, crossing
     15     timezones, or other complications with time and dates.
     16 
     17     Parameters
     18     ----------
     19     month: string|Date|integer (optional)
     20         Month.
     21 
     22     year: integer (optional)
     23         Year.
     24 
     25     Returns
     26     -------
     27     out: integer
     28         Seconds in a month.
     29 
     30     Examples
     31     --------
     32     > var num = {{alias}}()
     33     <number>
     34     > num = {{alias}}( 2 )
     35     <number>
     36     > num = {{alias}}( 2, 2016 )
     37     2505600
     38     > num = {{alias}}( 2, 2017 )
     39     2419200
     40 
     41     // Other ways to supply month:
     42     > num = {{alias}}( 'feb', 2016 )
     43     2505600
     44     > num = {{alias}}( 'february', 2016 )
     45     2505600
     46 
     47     See Also
     48     --------
     49