Skip to content

Commit c6b4601

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 7ec216e commit c6b4601

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

doc/api/os.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -383,15 +383,17 @@ systems.
383383
## os.uptime()
384384
<!-- YAML
385385
added: v0.3.3
386+
changes:
387+
- version: v10.0.0
388+
pr-url: https://github.com/nodejs/node/pull/20129
389+
description: The result of this function no longer contains a fraction
390+
component on Windows.
386391
-->
387392

388393
* Returns: {integer}
389394

390395
The `os.uptime()` method returns the system uptime in number of seconds.
391396

392-
*Note*: On Windows the returned value includes fractions of a second.
393-
Use `Math.floor()` to get whole seconds.
394-
395397
## os.userInfo([options])
396398
<!-- YAML
397399
added: v6.0.0

0 commit comments

Comments
 (0)