From 3a3144cf048bdcce701206eeb7540f1cc70a6ba1 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 aa074ce00179bf..d5e70e63f9bb05 100644 --- a/doc/api/os.md +++ b/doc/api/os.md @@ -381,15 +381,17 @@ systems. ## os.uptime() * Returns: {integer} The `os.uptime()` method returns the system uptime in number of seconds. -On Windows the returned value includes fractions of a second. Use `Math.floor()` -to get whole seconds. - ## os.userInfo([options])