time-to-botec

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

repl.txt (864B)


      1 
      2 {{alias}}( [month] )
      3     Returns the quarter of the year.
      4 
      5     By default, the function returns the quarter of the year for the current
      6     month in the current year (according to local time). To determine the
      7     quarter for a particular month, provide either a month or a `Date`
      8     object.
      9 
     10     A `month` may be either a month's integer value, three letter abbreviation,
     11     or full name (case insensitive).
     12 
     13     Parameters
     14     ----------
     15     month: integer|string|Date (optional)
     16         Month (or `Date`).
     17 
     18     Returns
     19     -------
     20     out: integer
     21         Quarter of the year.
     22 
     23     Examples
     24     --------
     25     > var q = {{alias}}( new Date() )
     26     <number>
     27     > q = {{alias}}( 4 )
     28     2
     29     > q = {{alias}}( 'June' )
     30     2
     31 
     32     // Other ways to supply month:
     33     > q = {{alias}}( 'April' )
     34     2
     35     > q = {{alias}}( 'apr' )
     36     2
     37 
     38     See Also
     39     --------
     40