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>
This commit is contained in:
cjihrig authored and Myles Borins committed 2018-05-04 11:51:12 -04:00
1 parent c139d2ab8d
commit 3a3144cf04
1 file changed
+5 -3
+5 -3
View File
@@ -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