function sap/base/util/now

Control sample: module:sap/base/util/now
Visiblity: public
Available since: N/A
Module: sap/base/util/now
Application Component:

Returns a high resolution timestamp in microseconds if supported by the environment, otherwise in milliseconds. The timestamp is based on 01/01/1970 00:00:00 (UNIX epoch) as float with microsecond precision or with millisecond precision, if high resolution timestamps are not available. The fractional part of the timestamp represents fractions of a millisecond. Converting to a Date is possible by using require(["sap/base/util/now"], function(now){new Date(now());}


Parameters Overview

Param Type Default Value Description

Methods Overview

Method Description