DateCalc Op
Perform date calculations
Summary (oneliner)
This Op lets you perform date calculations. Adding and subtracting seconds, minutes, hours, days, months or years to the input date. No dependencies. Sample patch: https://cables.gl/edit/mzfGGl
- Ops.Date.DateCalc
- Core Op - Official cables op
- MIT
Documentation (markdown)
Issues
Example patch id
Youtube ids (comma seperated)
Op Licence
Caniuse query
INPUT PORTS
Unix timestamp. eg. from the DateAndTime op. If empty, current timestamp is used
Number of days / months / .... to add
Update time value (not needed if an timestamp input is used)
OUTPUT PORTS
The calculated date in JS Date format
The calculated date in timestamp (milliseconds) format
Patches using DateCalc
Known Issues
There is a dependency on moment.js, but it's not used. I can't find where to remove the dependency
Changelog
created op | GeertVanDamme - 2020-10-27 10:38 | |
added lib: moment.js | GeertVanDamme - 2020-10-27 15:17 | |
cloned op from Ops.User.GeertVanDamme.DateCalc | GeertVanDamme - 2020-11-17 21:39 |