Skip to content

doc: are os.uptime() returned type and remark correct? #12291

@vsemozhetbyt

Description

@vsemozhetbyt
  • Version: 8.0.0-rc.0
  • Platform: Windows 7 x64
  • Subsystem: doc, os

Currently, both os.uptime() and process.uptime() return number with fractional seconds on Windows:

> os.uptime()
34298.2171316
> process.uptime()
20.648

However, their docs are different here:

https://github.com/nodejs/node/blame/7a5d07c7fbd43f3645d7f707fd6a98f2a251bdbd/doc/api/os.md#L372-L384

https://github.com/nodejs/node/blame/47f8f7462fb198aa27ede602c43786bdbfda37a2/doc/api/process.md#L1662-L1671

Are os.uptime() returned type integer and *Note* outdated or just OS-dependent?

Metadata

Metadata

Assignees

No one assigned

    Labels

    docIssues and PRs related to the documentations.osIssues and PRs related to the os subsystem.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions