import { add } from "https://deno.land/x/date_fns@v2.10.0/index.js";
Parameters
- the object with years, months, weeks, days, hours, minutes and seconds to be added. Positive decimals will be rounded using
Math.floor
, decimals less than zero will be rounded usingMath.ceil
.
Key | Description |
---|---|
years | Amount of years to be added |
months | Amount of months to be added |
weeks | Amount of weeks to be added |
days | Amount of days to be added |
hours | Amount of hours to be added |
minutes | Amount of minutes to be added |
seconds | Amount of seconds to be added |
All values default to 0