Skip to content

Manipulating timestamp value

What would be the best way to increase/decrease a timestamp value? I've tried the following 2 approaches:

[mytimestamp]
type=extract
default=%datetime-u%
increase=5

---

[temptimestamp]
type=extract
default=%datetime-u%

[mytimestamp]
type=extract
input=%temptimestamp%
increase=5

...but neither seem to work correctly

Comments

  • SvenSven www.GSA-Online.de
    I will update the code so that this "increase" will also work if no front/back was used.
    Thanked by 1cherub
  • cherubcherub SERnuke.com
    Just wondering if this was ever added? I'm trying to increase the unix timestamp by 10 using by defining these variables:
    [wrtmrs]
    type=extract
    default=%datetime-u%

    [wrtmrl]
    type=extract
    input=%wrtmrs%
    increase=10

    But all that is given for either is simply the letter 'u'
  • SvenSven www.GSA-Online.de
    Sorry about that...I found the issue and will fix it in next update.
    Thanked by 1cherub
  • cherubcherub SERnuke.com
    17.36 is now correctly giving the unix timestamp, but the 'increase' does not seem to be happening.
  • SvenSven www.GSA-Online.de
    Im making a silent update now. Please download manually again and install over the current version. It should work then.
  • cherubcherub SERnuke.com
    Your stealthy update worked! SER now has the mathematical skills of a ninja!
Sign In or Register to comment.