<div dir="ltr">Change T[now] to new Time(D[D[now], TZ[America/Los_Angeles]].getTime()<div><br></div><div>You can also simplify your script to</div><div><br></div><div>SET IsOpen = StartTime < new Time(D[D[now], TZ[America/Los_Angeles]].getTime() && StopTime > new Time(D[D[now], TZ[America/Los_Angeles]].getTime()</div><div><br></div><div>I'd recommend condensing the new Time... declarations to a variable + SET to improve readability.</div><div><br></div><div>HTH</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 27, 2016 at 6:46 PM, Dana Tong <span dir="ltr"><<a href="mailto:dana.tong@yellit.com.au" target="_blank">dana.tong@yellit.com.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="white" lang="EN-US" link="#0563C1" vlink="#954F72">
<div>
<p class="MsoNormal"><span lang="EN-AU">Hi all,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-AU"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-AU">I have a script that has an IF statement. Can I modify this somehow to reference a specific timezone?<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-AU"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-AU"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-AU">Currently the script is:<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-AU"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-AU">If (StartTime < T[now] && StopTime > T[now] ) Then<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-AU">True = Set IsOpen = True<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-AU">False = Set IsOpen = False<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-AU"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-AU">Does anyone know how this can be modified to be similar to:<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-AU"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-AU">If (StartTime < T[now based on EDST] && StopTime > T[now based on EDT] ) Then<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-AU"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-AU"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-AU">Ie start time based on Time in Sydney, Aus<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-AU">And StopTime based on Time in Brisbane, Aus<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-AU"><u></u> <u></u></span></p>
<p class="MsoNormal"><img width="803" height="185" src="cid:image001.png@01D2197E.03A0CFD0"><span lang="EN-AU"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-AU"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-AU">There are some variables called TZ[Australia\Sydney] etc however I am unsure how to construct this.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-AU"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-AU">Thanks for your help.<span class="HOEnZb"><font color="#888888"><u></u><u></u></font></span></span></p><span class="HOEnZb"><font color="#888888">
<p class="MsoNormal"><span lang="EN-AU"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-AU">Dana<u></u><u></u></span></p>
</font></span></div>
</div>
<br>______________________________<wbr>_________________<br>
cisco-voip mailing list<br>
<a href="mailto:cisco-voip@puck.nether.net">cisco-voip@puck.nether.net</a><br>
<a href="https://puck.nether.net/mailman/listinfo/cisco-voip" rel="noreferrer" target="_blank">https://puck.nether.net/<wbr>mailman/listinfo/cisco-voip</a><br>
<br></blockquote></div><br></div>