oven-sh/bun

fs.utimesSync sets the time in seconds (so it seems)

已關閉

#6,804 建立於 2023年10月30日

 (2 則留言) (0 個反應) (1 位負責人)Rust (4,486 個分叉)batch import
buggood first issuenode.js

倉庫指標

星標
 (90,348 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

What version of Bun is running?

1.0.7+b0393fba6200d8573f3433fb0af258a0e33ac157

What platform is your computer?

Darwin 21.6.0 x86_64 i386

What steps can reproduce the bug?

fs.utimesSync(pathname, atime, mtime)
console.log(fs.statSync(pathname).mtime.valueOf())

result always ends with "000" with no milliseconds

What is the expected behavior?

mtime should be set precisely

What do you see instead?

tested it also with node v18.17.1 and i get the correct results

Additional information

No response

貢獻者指南