Skip to content

Commit 3a3144c

Browse files
cjihrigMylesBorins
authored andcommitted
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: #20129 PR-URL: #20308 Refs: #20129 Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
1 parent c139d2a commit 3a3144c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

doc/api/os.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -381,15 +381,17 @@ systems.
381381
## os.uptime()
382382
<!-- YAML
383383
added: v0.3.3
384+
changes:
385+
- version: v10.0.0
386+
pr-url: https://github.com/nodejs/node/pull/20129
387+
description: The result of this function no longer contains a fraction
388+
component on Windows.
384389
-->
385390

386391
* Returns: {integer}
387392

388393
The `os.uptime()` method returns the system uptime in number of seconds.
389394

390-
On Windows the returned value includes fractions of a second. Use `Math.floor()`
391-
to get whole seconds.
392-
393395
## os.userInfo([options])
394396
<!-- YAML
395397
added: v6.0.0

0 commit comments

Comments
 (0)