File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -9,10 +9,13 @@ const {
9
9
ERR_INVALID_OPT_VALUE_ENCODING ,
10
10
ERR_OUT_OF_RANGE
11
11
} = require ( 'internal/errors' ) . codes ;
12
- const { isUint8Array, isArrayBufferView } = require ( 'internal/util/types' ) ;
12
+ const {
13
+ isUint8Array,
14
+ isArrayBufferView,
15
+ isDate
16
+ } = require ( 'internal/util/types' ) ;
13
17
const { once } = require ( 'internal/util' ) ;
14
18
const pathModule = require ( 'path' ) ;
15
- const util = require ( 'util' ) ;
16
19
const kType = Symbol ( 'type' ) ;
17
20
const kStats = Symbol ( 'stats' ) ;
18
21
@@ -392,7 +395,7 @@ function toUnixTimestamp(time, name = 'time') {
392
395
}
393
396
return time ;
394
397
}
395
- if ( util . isDate ( time ) ) {
398
+ if ( isDate ( time ) ) {
396
399
// Convert to 123.456 UNIX timestamp
397
400
return time . getTime ( ) / 1000 ;
398
401
}
You can’t perform that action at this time.
0 commit comments