How to apply magic dates for epoch time (Unix time) format
search cancel

How to apply magic dates for epoch time (Unix time) format

book

Article ID: 203380

calendar_today

Updated On:

Products

Service Virtualization

Issue/Introduction

Is there a way to apply magic dates (doDateDeltaFromCurrent) for an epoch time (Unix time) format? Have a VS response that sends back a timestamp in epoch format and need to send the current DateTime stamp.

 

Environment

All supported DevTest releases.

Resolution

If it is the current timestamp that need to be sent (so, no delta) then put the following in the responses:

{{=java.time.Instant.now().toEpochMilli();}}