search cancel

Apply magic dates for epoch time (Unix time) format

book

Article ID: 203566

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

DevTest 10.X
Lisa
Service Virtualization
SV

Cause

NA

Resolution

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

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


Additional Information

If we need to do an offset of D,H,S,sss.. do we have any solutions??