fs: expose Stats times as Numbers
Expose Stats times as Numbers also set Date cache fields in constructor
Fixes: #8276 (closed) Fixes: https://github.com/npm/npm/issues/16734 Ref: https://github.com/nodejs/node/pull/12607 Ref: https://github.com/nodejs/node/pull/12818
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines
Affected core subsystem(s)
fs