mirror of
https://github.com/denoland/deno.git
synced 2025-08-03 18:38:33 +00:00
This commit is contained in:
parent
2426174485
commit
0db04d6a42
2 changed files with 52 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
|||
import { sendSync, sendAsync } from "../dispatch_json.ts";
|
||||
|
||||
function toSecondsFromEpoch(v: number | Date): number {
|
||||
return v instanceof Date ? v.valueOf() / 1000 : v;
|
||||
return v instanceof Date ? Math.trunc(v.valueOf() / 1000) : v;
|
||||
}
|
||||
|
||||
export function utimeSync(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue