0

I am working on a C++ quickfix program where I obtain the current time using

ctm = FIX::DateTime::nowUtc() ;

I prefer to use the datetime format because I want to do some math to calculate an expiry time for an order.

the FIX::ExpireTime constructor seems to need a time in the utctimestamp class

Can anyone tell me how to convert a datetime class to a utctimestamp class ?

camelccc
  • 2,847
  • 8
  • 26
  • 52

1 Answers1

1

I think that would do:

FIX::UtcTimeStamp timeStamp = FIX::UtcTimeStamp();
FIX::ExpireTime expire = FIX::ExpireTime(timeStamp.getTimeT());
Hakan
  • 756
  • 1
  • 8
  • 17