AFAIK siddhi does not have a timezone [1].
but cant you write a custom func? [2]


[2] https://docs.wso2.com/display/CEP420/Writing+a+Custom+Function+Extension
[1] https://github.com/wso2/siddhi/issues/398

On Tue, Jun 19, 2018 at 2:28 PM, Shazni Nazeer <[email protected]> wrote:

>
> Hi,
>
> I have a requirement to get the UTC time of a given CST time. I can do by
> adding 6 or 5 hours based on *daylight* savings.
>
> I have a Siddhi query with a select as below.
>
> time:dateAdd(str:concat(time:dateFormat(time:dateSub(SchApptDateTime, 2,
> 'day'), "yyyy-MM-dd")," 09:01:00.000"), *6*, 'hour')  as
> ScheduledDateTimeUtc
>
> As you can see I have added 6 hours manually. Is there a way to get the
> UTC time of a given time based on given time-zone in Sidhdhi?
>
> If not is there an alternative way to get this worked?
>
> regards
> --
> Shazni Nazeer
>
> Mob : +94 777737331
> LinkedIn : http://lk.linkedin.com/in/shazninazeer
>
> Blogs :
>
> https://medium.com/@mshazninazeer
> http://shazninazeer.blogspot.com
>
> <http://wso2.com/signature>
>



-- 
*Vanjikumaran Sivajothy*
Lead Solutions Engineer - *WSO2 Inc. *
Committer and PMC member - Apache Synapse.
*http://wso2.com <http://wso2.com/>*
 *+1-925-464-6816*
[image: LinkedIn]
<http://www.linkedin.com/pub/vanjikumaran-sivajothy/25/b31/293> [image:
Blogger] <http://vanjikumaran.blogspot.com/> [image: SlideShare]
<http://www.slideshare.net/vanjikumaran>

This communication may contain privileged or other confidential information
and is intended exclusively for the addressee/s. If you are not the
intended recipient/s, or believe that you may have received this
communication in error, please reply to the sender indicating that fact and
delete the copy you received and in addition, you should not print,
copy, re-transmit, disseminate, or otherwise use the information contained
in this communication. Internet communications cannot be guaranteed to be
timely, secure, error or virus-free. The sender does not accept liability
for any errors or omissions
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to