<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-SG link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Mike,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Brilliant explanation.  That is a far better illumination of the session-time<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>topic in FIX than I have seen elsewhere.  This should absolutely be part<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>of the standard documentation (for any implementation).<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Obviously option #3 is far and away the best option (at least for me)!<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Thanks Much,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Jeff<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Quickfixn [mailto:quickfixn-bounces@lists.quickfixn.com] <b>On Behalf Of </b>Mike Gatny<br><b>Sent:</b> Wednesday, October 14, 2015 10:34 AM<br><b>To:</b> Mailing list for QuickFIX/n<br><b>Subject:</b> Re: {{Quickfixn}} Is quickfixn resetting msg to 1 at EndTime automatically?<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><div><div><div><p class=MsoNormal>On Tue, Oct 13, 2015 at 8:24 PM, Jeff S. <<a href="mailto:jeff@alphafinhk.com" target="_blank">jeff@alphafinhk.com</a>> wrote:<o:p></o:p></p><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>a)</span><span style='font-size:7.0pt;color:#1F497D'>      </span><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>do I need to set StartTime and StartDay or can they be omitted?</span><o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Yes, you must specify StartTime and StartDay.  <o:p></o:p></p></div><div><p class=MsoNormal> <o:p></o:p></p></div><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in'><div><p><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>b)</span><span style='font-size:7.0pt;color:#1F497D'>      </span><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Not sure I understand the documentation regarding the correct TimeZone setting.  For EST would </span><o:p></o:p></p><p><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>it be UTC-4 (Do I put “UTC-4” or “America/New_York”)</span><o:p></o:p></p></div></blockquote><div><p class=MsoNormal>On Windows platforms, you would use "Eastern Standard Time" and on Mono platforms you would use "US/Eastern".  But there's one more method that we haven't discussed yet (UseLocalTime=Y), see below...<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in'><div><p><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>c)</span><span style='font-size:7.0pt;color:#1F497D'>       </span><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>You mention that all times are normalized to UTC.  I assume this means that I would leave the TimeZone</span><o:p></o:p></p><p><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>setting the same regardless of where my server was running in the world.</span><o:p></o:p></p><p><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Would that be a correct assumption?</span><o:p></o:p></p></div></blockquote><div><p class=MsoNormal>StartTime/EndTime are interpreted as UTC unless you specify the TimeZone option or the UseLocalTime option.  So, yes, if you specify TimeZone explicitly, it does not matter at all what timezone your operating system's clock is using. <o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>But read on... <o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in'><div><p><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>d)</span><span style='font-size:7.0pt;color:#1F497D'>      </span><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Will I have to adjust this for daylight saving time twice a year?</span><o:p></o:p></p></div></blockquote><div><p class=MsoNormal>It depends :) Let me summarize the options you have:<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>1) Don't use the TimeZone and UseLocalTime options, and specify StartTime/EndTime in UTC.  If your counterparty observes DST you'll have to adjust your config twice per year.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>2) Don't use the TimeZone option.  Instead, set UseLocalTime=Y.  Set your server's clock to use your home timezone.  Set the StartTime/EndTime in your local time (converted from the Eastern Time your counterparty specified).  If you and your counterparty both begin/end DST at the same time, no twice-yearly adjustment needed. Otherwise, twice-yearly adjustment is needed.<o:p></o:p></p></div><div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>3) Set the TimeZone option to your counterparty's timezone, and use the times they gave you for StartTime/EndTime.  Don't use the UseLocalTime option.  No DST adjustment is necessary.<o:p></o:p></p></div></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>4) Don't use TimeZone, instead set UseLocalTime=Y, set your server's clock to *your counterparty's timezone*.  Set the StartTime/EndTime in your counterparty's time.  No DST adjustment necessary.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Methods #1 and #2 are undesirable because DST can be a factor.  Methods #3 and #4 are simpler, with #4 being simplest of all... unless you connect to multiple counterparties in multiple timezones.  If that is the case, prefer Method #3.  If you only have one counterparty, or if all your counterparties are in the same timezone, you can use Method #4.<o:p></o:p></p></div></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>p.s. Note that the "Eastern Standard Time" timezone ID on Windows is a somewhat unfortunate name.  It is confusing because during observance of daylight saving time, one would normally refer to eastern time as "Eastern Daylight Time". This timezone ID on Windows will in fact observe daylight saving time (which is good!), despite the name.  <o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><div><div><div><div><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'>--</span><o:p></o:p></p></div><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'>Mike Gatny<br>Connamara Systems, LLC</span><o:p></o:p></p></div></div></div><div><p class=MsoNormal><o:p> </o:p></p></div></div></div></div></div></body></html>