I have a use case, where i need to generate timestamp in Epoch UTC format till seconds 1662371646, and perform Substract operation for generate one minute ago time in same format.
below is my Jolt Spec :
[
{
"operation": "default",
"spec": {
"currenttime": "${now():toNumber()}"
}
},
{
"operation": "modify-overwrite-beta",
"spec": {
"timeOneMinu": "=Subtract(@(1,currenttime),60)"
}
}
]
Expected Output
{
"currenttime": "1662372281",
"timeOneMinu": "1662372221"
}
Please suggest, How we can do this.
