Repository: ignite
Updated Branches:
  refs/heads/ignite-7777 [created] db232830e


Update Timestamp.js

Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/d8761a7a
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/d8761a7a
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/d8761a7a

Branch: refs/heads/ignite-7777
Commit: d8761a7a857f480fbc4f8e35db16b3a4c2a12555
Parents: a9260f0
Author: alexey-nbl <[email protected]>
Authored: Mon May 7 20:57:52 2018 +0300
Committer: GitHub <[email protected]>
Committed: Mon May 7 20:57:52 2018 +0300

----------------------------------------------------------------------
 modules/platforms/nodejs/lib/Timestamp.js | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/d8761a7a/modules/platforms/nodejs/lib/Timestamp.js
----------------------------------------------------------------------
diff --git a/modules/platforms/nodejs/lib/Timestamp.js 
b/modules/platforms/nodejs/lib/Timestamp.js
index be8bdb2..0694850 100644
--- a/modules/platforms/nodejs/lib/Timestamp.js
+++ b/modules/platforms/nodejs/lib/Timestamp.js
@@ -25,7 +25,7 @@ const ArgumentChecker = require('./internal/ArgumentChecker');
  * The timestamp extends the standard JavaScript {@link Date} Object and 
consists of:
  *   - time  - the number of milliseconds since January 1, 1970, 00:00:00 UTC,
  *             methods of the JavaScript {@link Date} Object can be used to 
operate with the time.
- *   - nanoseconds - fraction of the last second in the range from 0 to 
999999999 nanoseconds,
+ *   - nanoseconds - fraction of the last millisecond in the range from 0 to 
999999 nanoseconds,
  *                   this class specifies additional methods to operate with 
the nanoseconds.
  */
 class Timestamp extends Date {
@@ -34,8 +34,8 @@ class Timestamp extends Date {
      * Public constructor.
      *
      * @param {number} time - integer value representing the number of 
milliseconds since January 1, 1970, 00:00:00 UTC.
-     * @param {number} nanos - integer value representing the nanoseconds of 
the last second,
-     *                         can be in the range from 0 to 999999999.
+     * @param {number} nanos - integer value representing the nanoseconds of 
the last millisecond,
+     *                         should be in the range from 0 to 999999.
      *
      * @return {Timestamp} - new Timestamp instance
      *
@@ -47,18 +47,19 @@ class Timestamp extends Date {
     }
 
     /**
-     * Returns the nanoseconds of the last second from the timestamp.
+     * Returns the nanoseconds of the last millisecond from the timestamp.
      *
-     * @return {number} - nanoseconds of the last second.
+     * @return {number} - nanoseconds of the last millisecond.
      */
     getNanos() {
         return this._nanos;
     }
 
     /**
-     * Updates the nanoseconds of the last second in the timestamp.
+     * Updates the nanoseconds of the last millisecond in the timestamp.
      *
-     * @param {number} nanos - new value for the nanoseconds of the last 
second.
+     * @param {number} nanos - new value for the nanoseconds of the last 
millisecond,
+     *                         should be in the range from 0 to 999999.
      *
      * @return {Timestamp} - the same instance of Timestamp
      *

Reply via email to