Lines Matching refs:time
135 // allocation for small files and consumes CPU time and memory that should be
649 function toUnixTimestamp(time, name = 'time') {
651 if (typeof time === 'string' && +time == time) {
652 return +time;
654 if (NumberIsFinite(time)) {
655 if (time < 0) {
658 return time;
660 if (isDate(time)) {
662 return DatePrototypeGetTime(time) / 1000;
664 throw new ERR_INVALID_ARG_TYPE(name, ['Date', 'Time in seconds'], time);