| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent c139d2a commit 3a3144c
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -381,15 +381,17 @@ systems. | |||
| 381 | 381 | ## os.uptime() | |
| 382 | 382 | <!-- YAML | |
| 383 | 383 | 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. | ||
| 384 | 389 | --> | |
| 385 | 390 | ||
| 386 | 391 | * Returns: {integer} | |
| 387 | 392 | ||
| 388 | 393 | The `os.uptime()` method returns the system uptime in number of seconds. | |
| 389 | 394 | ||
| 390 | - On Windows the returned value includes fractions of a second. Use `Math.floor()` | ||
| 391 | - to get whole seconds. | ||
| 392 | - | ||
| 393 | 395 | ## os.userInfo([options]) | |
| 394 | 396 | <!-- YAML | |
| 395 | 397 | added: v6.0.0 | |
| Back | FazBrowse Home | New Git URL |
0 commit comments