jstests/aggregation/sources/setWindowFields/time.js
// Create an ISODate that occurs 'seconds' seconds after a fixed date.
Create an ISODate that occurs 'seconds' seconds after a fixed date.
Create an ISODate that occurs ' seconds ' seconds after a fixed date .
function makeDate(seconds) {
    let result = ISODate('2021-01-01T00:00:00Z');
    result.setUTCMilliseconds(seconds * 1000);
    return result;
}
function makeDate ( seconds ) { let result = ISODate ( '2021-01-01T00:00:00Z' ) ; result . setUTCMilliseconds ( seconds * 1000 ) ; return result ; }
Create an ISODate that occurs 'seconds' seconds after a fixed date.
Create an ISODate that occurs ' seconds ' seconds after a fixed date .