Re: [Quickfix-developers] FIX::TransactTime
Brought to you by:
orenmnero
From: Joaquín G. <j.g...@ra...> - 2010-06-09 06:30:30
|
Thank you, that works. I was trying to convert it to number, I don't know why I had not tried to convert it to string. I fact, what I did is just: std::string strTime = transTime.getString(); being transTime a FIX:TransactTime parameter of the function. message is not in the scope of this function. Thanks again! Bye. El 07/06/2010, a las 14:56, George Tsafas escribió: I convert transacttime to sql format as follows FIX::TransactTime TRANSACTTIME; if (message.isSetField(TRANSACTTIME)) { fTransactTime = message.getField(TRANSACTTIME) .getString(); std::string FixedDate = ""; FixedDate = fTransactTime; FixedDate.insert(4,"-"); FixedDate.insert(7,"-"); FixedDate.replace(10,1," "); fTransactTime = FixedDate; } There is probably a better way but for my use this is sufficient. Thanks, George Tsafas Rosenblatt Securities -----Original Message----- From: Joaquín Gracia [mailto:j.g...@ra...] Sent: Monday, June 07, 2010 2:16 AM To: qui...@li... Subject: [Quickfix-developers] FIX::TransactTime QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/index.html QuickFIX Support: http://www.quickfixengine.org/services.html Hi all, I need to store TransactTime field (fix 4.2) in a SQL table record and, of course, being able to recover it. What datatype should I use in SQL? Do I have to use datetime? In that case, how do I convert FIX::TransactTime to CTime in C++? Do I need to "remember" transactTime at all to cancel a previous order (it seems to me that OrderCncelRequest does need this argument) ? Thank you. Joaquín Gracia. ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ Quickfix-developers mailing list Qui...@li... https://lists.sourceforge.net/lists/listinfo/quickfix-developers |