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 {
99 ERR_INVALID_OPT_VALUE_ENCODING ,
1010 ERR_OUT_OF_RANGE
1111} = 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' ) ;
1317const { once } = require ( 'internal/util' ) ;
1418const pathModule = require ( 'path' ) ;
15- const util = require ( 'util' ) ;
1619const kType = Symbol ( 'type' ) ;
1720const kStats = Symbol ( 'stats' ) ;
1821
@@ -392,7 +395,7 @@ function toUnixTimestamp(time, name = 'time') {
392395 }
393396 return time ;
394397 }
395- if ( util . isDate ( time ) ) {
398+ if ( isDate ( time ) ) {
396399 // Convert to 123.456 UNIX timestamp
397400 return time . getTime ( ) / 1000 ;
398401 }
You can’t perform that action at this time.
0 commit comments