Re: [Quickfix-developers] Miliseconds in UTC Time
Brought to you by:
orenmnero
From: Caleb E. <ca...@bk...> - 2003-10-08 18:57:03
|
On Mon, Oct 06, 2003 at 03:34:25PM -0400, Daniel May wrote: > I am aware that the millisecond field is absent in most time > routines. I was going to start by changing UtcTimeStamp to use the > timeb struct struct timeb { time_t time; // Time in seconds since > midnight (00:00:00), January 1, 1970, (UTC). unsigned short > millitm; // Fraction of a second in milliseconds. short timezone; > // Difference in minutes, moving westward, between UTC and local > time short dstflag; // Nonzero if daylight savings time is currently > in effect for the local zone. }; The only problem with switching to something time_t-based like struct timeb is that what you gain in resolution you lose in domain. You will no longer be able to represent any dat past (mumble) 2037. This is not such a big deal for single stock day orders but may addle anyone using QuickFix to handle any long-dated securities (e.g. some bonds). -- Caleb Epstein | bklyn . org | It seems like the less a statesman amounts to, cae at | Brooklyn Dust | the more he loves the flag. bklyn dot org | Bunny Mfg. | |