Module: analytics

Classes

Analytics

Members

(static) analytics :module:analytics~Analytics

Implements data analytics functions.

Type:
Source:

Methods

(inner) isFreshInstall() → {boolean}

Checks whether this is a fresh installation.

Source:
Returns:
Type
boolean

(inner) stripFirstVersion(firstVersion, currentVersion) → (nullable) {string}

Strips the value of the firstVersion parameter down to either YYYYMMDD, YYYYMM, or YYYY depending on its distance from the value of the currentVersion parameter.

Parameters:
Name Type Description
firstVersion string

A version string in YYYYMMDD[HH[MM]] format with an optional "-E" suffix or just "0" or "0-E".

currentVersion string

A version string in YYYYMMDD[HH[MM]] format or just "0".

Source:
Returns:
Type
string

(inner) versionToDate(version) → {Date}

Converts a version string into a Date object with minute-level precision.

Parameters:
Name Type Description
version string

The version string in YYYYMMDD[HH[MM]] format or just the value "0".

Source:
Returns:

A Date object. If the value of version is "0", the returned value represents the Unix epoch.

Type
Date