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 <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>
  • Loading branch information
cjihrig authored and BridgeAR committed Apr 26, 2018
1 parent bda2eaf commit 124875c
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 @@ -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
Expand Down

0 comments on commit 124875c

Please sign in to comment.