Get CurrentUnixTime with Milliseconds



  • Hello, I need to get CurrentUnixTime but with milliseconds
    I saw there was an old topic but I couldn't succeed with that.
    Atm with current Unix time we get 10 digits like this 1605946855 but I need 13 digits like this 1605946855713
    How do I do this?

    Thanks a lot in advance



  • @Suro

    BEGIN SCRIPT JavaScript
    var TIME = new Date().getTime();
    END SCRIPT -> VARS "TIME"
    


  • there is an easy way, generate a 10 digits one then put it in a var like UNIXTIME then:

    #UNIXTOMS FUNCTION RandomString "<UNIXTIME>?d?d?d" -> VAR "MSTIME"
    

Log in to reply