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>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to