[cisco-voip] UCCX Timezone questions
Tanner Ezell
tanner.ezell at gmail.com
Tue Sep 27 22:18:10 EDT 2016
Missed a right paren. Should be new Time(D[D[now],
TZ[America/Los_Angeles]].getTime())
On Tue, Sep 27, 2016 at 7:16 PM, Tanner Ezell <tanner.ezell at gmail.com>
wrote:
> Change T[now] to new Time(D[D[now], TZ[America/Los_Angeles]].getTime()
>
> You can also simplify your script to
>
> SET IsOpen = StartTime < new Time(D[D[now], TZ[America/Los_Angeles]].getTime()
> && StopTime > new Time(D[D[now], TZ[America/Los_Angeles]].getTime()
>
> I'd recommend condensing the new Time... declarations to a variable + SET
> to improve readability.
>
> HTH
>
> On Tue, Sep 27, 2016 at 6:46 PM, Dana Tong <dana.tong at yellit.com.au>
> wrote:
>
>> Hi all,
>>
>>
>>
>> I have a script that has an IF statement. Can I modify this somehow to
>> reference a specific timezone?
>>
>>
>>
>>
>>
>> Currently the script is:
>>
>>
>>
>> If (StartTime < T[now] && StopTime > T[now] ) Then
>>
>> True = Set IsOpen = True
>>
>> False = Set IsOpen = False
>>
>>
>>
>> Does anyone know how this can be modified to be similar to:
>>
>>
>>
>> If (StartTime < T[now based on EDST] && StopTime > T[now based on EDT] )
>> Then
>>
>>
>>
>>
>>
>> Ie start time based on Time in Sydney, Aus
>>
>> And StopTime based on Time in Brisbane, Aus
>>
>>
>>
>>
>>
>> There are some variables called TZ[Australia\Sydney] etc however I am
>> unsure how to construct this.
>>
>>
>>
>> Thanks for your help.
>>
>>
>>
>> Dana
>>
>> _______________________________________________
>> cisco-voip mailing list
>> cisco-voip at puck.nether.net
>> https://puck.nether.net/mailman/listinfo/cisco-voip
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://puck.nether.net/pipermail/cisco-voip/attachments/20160927/bccc3e6e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 11310 bytes
Desc: not available
URL: <https://puck.nether.net/pipermail/cisco-voip/attachments/20160927/bccc3e6e/attachment.png>
More information about the cisco-voip
mailing list