Dynamic variable timestamp in milliseconds

Hi!

I would like to have a dynamic timestamp in milliseconds, eg. {{$timestampMs}}. Dynamic variables | Postman Learning Center

What I do now is setting a variable in Pre-request Script

pm.variables.set("timestampMs", new Date().getTime());

I don’t want to do that in every request i need a timestamp in ms.

I thought this would be a common case but I haven’t found any other requests for it.

1 Like