From c6b4601bc7aee83fb35fe0a0b03d65a318bc0d67 Mon Sep 17 00:00:00 2001 From: cjihrig Date: Wed, 25 Apr 2018 18:56:44 -0400 Subject: [PATCH] doc: remove os.uptime() Windows note The libuv 1.20.2 update in Node 10 aligned the Windows behavior of os.uptime() with that of other operating systems. The return value no longer contains a fraction component. Refs: https://github.com/nodejs/node/pull/20129 PR-URL: https://github.com/nodejs/node/pull/20308 Refs: https://github.com/nodejs/node/pull/20129 Reviewed-By: Vse Mozhet Byt Reviewed-By: Richard Lau Reviewed-By: Ruben Bridgewater Reviewed-By: Trivikram Kamat --- doc/api/os.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/doc/api/os.md b/doc/api/os.md index f46292b81386ec..3ba4474e439f18 100644 --- a/doc/api/os.md +++ b/doc/api/os.md @@ -383,15 +383,17 @@ systems. ## os.uptime() * Returns: {integer} The `os.uptime()` method returns the system uptime in number of seconds. -*Note*: On Windows the returned value includes fractions of a second. -Use `Math.floor()` to get whole seconds. - ## os.userInfo([options])