Hi, I'm trying to extract 'hour' from a millisecond time stamp using the below method of Siddhi time extension which is mentioned on [1 <https://docs.wso2.com/display/CEP400/Siddhi+Extensions#SiddhiExtensions-time> ].
<string> extract(<long> timestampInMilliseconds,<string> unit) > My test cases as follows; 1. ts = 1442707210 : Sun 20 Sep 2015 05:30:10 AM IST GMT+5:30 2. ts = 1442750400 : Sun 20 Sep 2015 *05:30:00 PM* IST GMT+5:30 3. ts = 1442793630 : Mon 21 Sep 2015 05:30:30 AM IST GMT+5:30 And result for time:extract( ts, 'hour' ) for each test case; 1. 5 2. *5* 3. 5 Seems it is returning extracted hour value in 12h format. Is there a way to get the extracted hour value in 24h format? [1] https://docs.wso2.com/display/CEP400/Siddhi+Extensions#SiddhiExtensions-time Thanks, Grainier -- Grainier Perera Software Engineer Mobile : +94716122384 WSO2 Inc. | http://wso2.com lean.enterprise.middleware
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev