Creates a new Date object, but also adds provided number of seconds to it. Specify positive number to get a date in the future and negative to get a date in the past.
constfutureDate = createOffsetDate(10); // new Date() plus 10 seconds constpastDate = createOffsetDate(-10); // new Date() minus 10 seconds
Creates a new Date object, but also adds provided number of seconds to it. Specify positive number to get a date in the future and negative to get a date in the past.