Modify time by seconds


Please add a Seconds in the Modify Time block

1 Like

This can already be done with simple math. Unix itself is counted in seconds since January 1 1970. Using that logic, you can simply retrieve the current time in Unix and using a math block, subtract by the seconds you want. :+1:

I know it can be done with math and the logic behind is more or less

UNIX time +/- minutes x60 +/- hours x3600 +/- days x86400

Just like how the @now in the Unix Time slow replaces the need for the Get Current Date and Time block, his suggestion replaces the need for a Math block after the Get Current Date and Time or the need for Math in addition to the Modify Time block. This would take the logic from above and just add another category for seconds to get the following math output

UNIX time +/- seconds +/- minutes x60 +/- hours x3600 +/- days x86400

1 Like