You are here:
getTimer(timerId)
The function returns an object containing getter functions defined in the table under Returns section, if the timer with the corresponding timer ID exists.

Use more general search terms.
Select fewer filters to broaden your search.
You are here:
The function returns an object containing getter functions defined in the table under Returns section, if the timer with the corresponding timer ID exists.
| Available in Lightning Experience in Professional, Unlimited, and Enterprise Editions that have Consumer Goods Cloud enabled. |
timerid: is the internal name used to refer to the
timer.
object containing the following functions
| Attributes | Meaning |
|---|---|
| getTimerId() | returns the internal name used to reference the timer |
| getStartTime() | returns a date object that contains the time when the timer has been started |
| getIsRunning() | returns false if timer has been stopped, true otherwise |
| getEndTime() | returns a date object that contains the time when the timer expires |
| getElapsedTime() returns | returns current time - start time [minutes /integer] * |
| getDuration() | returns the duration of the timer in minutes |

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.