summaryrefslogtreecommitdiff
path: root/doc/api/os.md
diff options
context:
space:
mode:
authorcjihrig <cjihrig@gmail.com>2018-04-25 18:56:44 -0400
committerRuben Bridgewater <ruben@bridgewater.de>2018-04-26 19:54:10 +0200
commit124875cab2ab129b0e1689c7727d5eaeab4618c2 (patch)
treeb7658c61c38be27bf49c3634d2726efff96d15b4 /doc/api/os.md
parentbda2eaf3d5967603eeb2c498058a5256a3dc37d1 (diff)
downloadandroid-node-v8-124875cab2ab129b0e1689c7727d5eaeab4618c2.tar.gz
android-node-v8-124875cab2ab129b0e1689c7727d5eaeab4618c2.tar.bz2
android-node-v8-124875cab2ab129b0e1689c7727d5eaeab4618c2.zip
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 <vsemozhetbyt@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Diffstat (limited to 'doc/api/os.md')
-rw-r--r--doc/api/os.md8
1 files changed, 5 insertions, 3 deletions
diff --git a/doc/api/os.md b/doc/api/os.md
index aa074ce001..d5e70e63f9 100644
--- a/doc/api/os.md
+++ b/doc/api/os.md
@@ -381,15 +381,17 @@ systems.
## os.uptime()
<!-- YAML
added: v0.3.3
+changes:
+ - version: v10.0.0
+ pr-url: https://github.com/nodejs/node/pull/20129
+ description: The result of this function no longer contains a fraction
+ component on Windows.
-->
* 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])
<!-- YAML
added: v6.0.0