Module: constants

Members

(inner, constant) timeGranularities :number

Supported time granularities. Each granularity exist in different versions to accomodate different function calls for the same granularity level. See the example.

Type:
  • number
Properties:
Name Type Description
total number
none number
year number
month number
day number
hour number
minute number
second number
T number

Short form of "total"

N number

Short form of "none"

Y number

Short form of "year"

M number

Short form of "month"

D number

Short form of "day"

h number

Short form of "hour"

m number

Short form of "minute"

s number

Short form of "second"

0 number

Integer form of "none"

1 number

Integer form of "year"

2 number

Integer form of "month"

3 number

Integer form of "day"

4 number

Integer form of "hour"

5 number

Integer form of "minute"

6 number

Integer form of "second"

Source:
Example
// All these are equivalent
myCounter.count('hour');
myCounter.count('h');
myCounter.count('4');
myCounter.count(4);