Skip to content

Commit

Permalink
doc: remove os.uptime() Windows note
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
cjihrig authored and MylesBorins committed Aug 7, 2018
1 parent 7ec216e commit c6b4601
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions doc/api/os.md
Original file line number Diff line number Diff line change
Expand Up @@ -383,15 +383,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.

*Note*: 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
Expand Down

0 comments on commit c6b4601

Please sign in to comment.