SAP Knowledge Base Article - Public

3556995 - How to log the current time to console with Analytical Applications in SAP Analytics Cloud

Symptom

How can we get the current time for an event when reviewing console? 

Environment

SAP Analytic Cloud

Resolution

The following code when added to and object will note the time in the console log. 

var currentDate = new Date();
var currentTime = currentDate.toLocaleTimeString();
var timeText = "Time of event Start is  " + currentTime;
console.log(timeText);

//other code

var EndcurrentDate = new Date();
var EndcurrentTime = EndcurrentDate.toLocaleTimeString();
var EndtimeText = "Time of event Finish is " + EndcurrentTime;
console.log(EndtimeText);

See Also

Analytics Designer API Reference Guide Version 2024.21

Keywords

timestamp; console logging; how to log time; time stamp , KBA , LOD-ANA-AD , Analytics Designer , LOD-ANA-UNS , SAC Unified Story (Story 2.0) main component. , How To

Product

SAP Analytics Cloud 1.0