Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3a3144c

Browse filesBrowse 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 <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>
1 parent c139d2a commit 3a3144c
Copy full SHA for 3a3144c

File tree

Expand file treeCollapse file tree

1 file changed

+5
-3
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-3
lines changed
Open diff view settings
Collapse file

‎doc/api/os.md‎

Copy file name to clipboardExpand all lines: doc/api/os.md
+5-3Lines changed: 5 additions & 3 deletions
  • Display the source diff
  • Display the rich diff
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.