Skip to content

Commit 22d449a

Browse files
committed
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: nodejs#20129
1 parent 2a30bfe commit 22d449a

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
@@ -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)