Skip to content

fs.stat.birthtimeMs returns an integer instead of a float #21943

@lukasmoellerch

Description

@lukasmoellerch

What version of Bun is running?

1.2.19+aad3abead

What platform is your computer?

Darwin 24.5.0 arm64 arm

What steps can reproduce the bug?

run bun -e "require('fs').stat('.', (e,x)=>console.log(x.birthtimeMs))" on macOS

What is the expected behavior?

node -e "require('fs').stat('.', (e,x)=>console.log(x.birthtimeMs))" returns a floating point value like 1755376430287.9988

What do you see instead?

bun -e "require('fs').stat('.', (e,x)=>console.log(x.birthtimeMs))" returns an integer like 1755376430287

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingnode:fs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions