<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Oct 13, 2015 at 8:24 PM, Jeff S. <span dir="ltr"><<a href="mailto:jeff@alphafinhk.com" target="_blank">jeff@alphafinhk.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div lang="EN-SG" link="blue" vlink="purple"><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">a)<span style="font-stretch:normal;font-size:7pt;font-family:'Times New Roman'">      </span></span><u></u><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">do I need to set StartTime and StartDay or can they be omitted?</span><br></p></div></blockquote><div><br></div><div>Yes, you must specify StartTime and StartDay.  </div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div lang="EN-SG" link="blue" vlink="purple"><p><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u><u></u></span></p><p><u></u><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><span>b)<span style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:7pt;line-height:normal;font-family:'Times New Roman'">      </span></span></span><u></u><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Not sure I understand the documentation regarding the correct TimeZone setting.  For EST would <u></u><u></u></span></p><p><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">it be UTC-4 (Do I put “UTC-4” or “America/New_York”)</span></p></div></blockquote><div>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...</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div lang="EN-SG" link="blue" vlink="purple"><p><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u><u></u></span></p><p><u></u><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><span>c)<span style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:7pt;line-height:normal;font-family:'Times New Roman'">       </span></span></span><u></u><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">You mention that all times are normalized to UTC.  I assume this means that I would leave the TimeZone<u></u><u></u></span></p><p><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">setting the same regardless of where my server was running in the world.<u></u><u></u></span></p><p><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Would that be a correct assumption?</span></p></div></blockquote><div>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. </div><div><br></div><div>But read on... </div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div lang="EN-SG" link="blue" vlink="purple"><p><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u><u></u></span></p><p><u></u><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><span>d)<span style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:7pt;line-height:normal;font-family:'Times New Roman'">      </span></span></span><u></u><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Will I have to adjust this for daylight saving time twice a year?</span></p></div></blockquote><div class="gmail_quote">It depends :) Let me summarize the options you have:</div><div class="gmail_quote"><br></div><div class="gmail_quote">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.</div><div class="gmail_quote"><br></div><div class="gmail_quote">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.</div><div class="gmail_quote"><div class="gmail_quote"><br></div><div class="gmail_quote">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.</div></div><div class="gmail_quote"><br></div><div class="gmail_quote">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.</div><div class="gmail_quote"><br></div><div class="gmail_quote">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.</div></div><div class="gmail_quote"><br></div><div class="gmail_quote">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.  </div><div class="gmail_quote"><br></div><div class="gmail_quote"><div><div class="gmail_signature"><div dir="ltr"><div><font face="arial, helvetica, sans-serif">--</font></div><font face="arial, helvetica, sans-serif">Mike Gatny<br>Connamara Systems, LLC</font></div></div></div><div><br></div></div></div></div>