dyne / slangroom

Enhance zencode smart contracts with your slang
https://dyne.org/slangroom/
GNU Affero General Public License v3.0
5 stars 1 forks source link

New timestamp operation #178

Closed matteo-cristino closed 3 months ago

matteo-cristino commented 4 months ago

a new statment in @slangroom/timestamp should be created to handle operations on time, as for example sum of moths, years or date. The input can be something like

{
  "duration": {
    "days": 1,
    "months": 6,
    "years": 2
  }
}

at the output should be the unix timestamp of now+2years+6months+1days

matteo-cristino commented 3 months ago

Moved to zenroom