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
Full Name
- 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
timestamp (Number)
Unix timestamp. eg. from the DateAndTime op. If empty, current timestamp is used
difference (Number:integer )
Number of days / months / .... to add
type index (Number:integer )
update (Trigger)
Update time value (not needed if an timestamp input is used)
OUTPUT PORTS
Date (Object)
The calculated date in JS Date format
Timestamp (Number)
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 dependencyChangelog
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 |