Re: [Quickfix-developers] Réf._:_Re:_[Quickfix-developers]_UTCTimeStamp_with millisecond
Brought to you by:
orenmnero
From: Oren M. <ore...@ya...> - 2003-07-01 16:53:53
|
Heh. I can't believe that there is actually a variable called 'foo'. That really should be called 'len'; That char* is the result from strptime, which points to the last character in the parsed time. This is just checking that the length of the parsed string is 17 characters long. Sounds like you have two situations, one where you could get a 17 character or a 21 character (with milliseconds) time. You can keep it as a string depending on how you want to used the field. If you just want to display them, no reason to do any conversion at all. If you want to do comparisons or pull out individual components of the time, then you will probably want it converted. --- ili...@bn... wrote: > > First of all, thanks for your interest, and to > answer your question, I > receive UTCTimeStamps with AND without milliseconds, > and I'd like to > receive both correctly. > I've tried to modify the UTCTimerStampConvertor, but > I must say that I'm > stumped by the code, especially the substraction of > char* : > if (foo - val != 17) ... > > For the moment, and as 370 it's not a required tag, > I've declared it as a > STRING, not a UTCTimeStamp. If you have a better > solution than this one, > I'd love to hear it. > > Thanks again. > Ilyas > > > > > Internet > ore...@ya... - 27/06/2003 13:18 > > Pour : Ilias USAL, quickfix-developers > > cc : > > > Objet : Re: [Quickfix-developers] UTCTimeStamp > with millisecond > > > You will need to modify your UTCTimeStampConvertor > to > allow for this format. Do you actually want to use > the milliseconds or ignore them? > > --- ili...@bn... wrote: > > Hello everybody, > > I have a problem with the format of UTCTimeStamp. > I > > am receiving tag 370 > > like so: YYYYMMDD-HH:MM:SS.sss, and my FIX engine > > keeps rejecting the > > messages. Tag 58 is populated with "Incorrect data > > format for value". > > > > Does anybody know how to fix that? > > > > Thanks. > > Ilyas > > > > > > > > > > This message and any attachments (the "message") > is > > intended solely for the addressees and is > > confidential. > > If you receive this message in error, please > delete > > it and > > immediately notify the sender. Any use not in > accord > > with > > its purpose, any dissemination or disclosure, > either > > whole > > or partial, is prohibited except formal approval. > > The internet > > can not guarantee the integrity of this message. > > BNP PARIBAS (and its subsidiaries) shall (will) > not > > therefore be liable for the message if modified. > > > > > > --------------------------------------------- > > > > Ce message et toutes les pieces jointes (ci-apres > le > > > > "message") sont etablis a l'intention exclusive de > > ses > > destinataires et sont confidentiels. Si vous > recevez > > ce > > message par erreur, merci de le detruire et d'en > > avertir > > immediatement l'expediteur. Toute utilisation de > ce > > message non conforme a sa destination, toute > > diffusion > > ou toute publication, totale ou partielle, est > > interdite, sauf > > autorisation expresse. L'internet ne permettant > pas > > d'assurer l'integrite de ce message, BNP PARIBAS > (et > > ses > > filiales) decline(nt) toute responsabilite au > titre > > de ce > > message, dans l'hypothese ou il aurait ete > modifie. > > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: INetU > > Attention Web Developers & Consultants: Become An > > INetU Hosting Partner. > > Refer Dedicated Servers. We Manage Them. You Get > 10% > > Monthly Commission! > > INetU Dedicated Managed Hosting > > http://www.inetu.net/partner/index.php > > _______________________________________________ > > Quickfix-developers mailing list > > Qui...@li... > > > https://lists.sourceforge.net/lists/listinfo/quickfix-developers > > __________________________________ > Do you Yahoo!? > SBC Yahoo! DSL - Now only $29.95 per month! > http://sbc.yahoo.com > > > > > > > > This message and any attachments (the "message") is > intended solely for the addressees and is > confidential. > If you receive this message in error, please delete > it and > immediately notify the sender. Any use not in accord > with > its purpose, any dissemination or disclosure, either > whole > or partial, is prohibited except formal approval. > The internet > can not guarantee the integrity of this message. > BNP PARIBAS (and its subsidiaries) shall (will) not > therefore be liable for the message if modified. > > > --------------------------------------------- > > Ce message et toutes les pieces jointes (ci-apres le > > "message") sont etablis a l'intention exclusive de > ses > destinataires et sont confidentiels. Si vous recevez > ce > message par erreur, merci de le detruire et d'en > avertir > immediatement l'expediteur. Toute utilisation de ce > message non conforme a sa destination, toute > diffusion > ou toute publication, totale ou partielle, est > interdite, sauf > autorisation expresse. L'internet ne permettant pas > d'assurer l'integrite de ce message, BNP PARIBAS (et > ses > filiales) decline(nt) toute responsabilite au titre > de ce > message, dans l'hypothese ou il aurait ete modifie. > > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built > ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are > available now. > Download today and enter to win an XBOX or Visual > Studio .NET. > http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 > _______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com |