Dear Ahmed, Yes, you can control the date format, by setting a dateFormat property in the consumer definition. >From the user guide: Date formatter - the default date format is dd/MM/YYYY-HH:mm:ss. If you would like to use a different format for your output events, you have to specify a date formatter (e.g., dd.MM.yyyy G 'at' HH:mm:ss z) You can see example for using it in the PSB consumer of the LiveDemo project definition (attached) Best regards, Tali Tali Yatzkar Haham Smart Decision Solutions IBM Haifa Research Lab, Israel tali at il.ibm.com 972-4-8296320 From: Ahmed Sadek <don1559 at gmail.com> To: Tali Yatzkar-Haham/Haifa/IBM at IBMIL, "fiware-tech-he." <fiware-tech-help at lists.fi-ware.org> Date: 22/04/2015 02:00 PM Subject: regarding format CEP Dear tali, regarding the CEP output format for the date, I know it's a built in attribute type for the event and it's generated in a strange format: {"OccurrenceTime":"22\/04\/2015- 12:50:42","Annotation":"","Duration":"0.0","EventId":"a5f572c6-c920-4ffb-a825-a9a3a3bcb59e","DetectionTime":"22\/04\/2015-12:50:42"} Is it possible to generate the date in other format for example: 22-04-2015- So it would be easier for parsing ? Best, Ahmed Sadek -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.fiware.org/private/fiware-tech-help/attachments/20150426/0000bd42/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: LiveDemo.json Type: application/octet-stream Size: 37568 bytes Desc: not available URL: <https://lists.fiware.org/private/fiware-tech-help/attachments/20150426/0000bd42/attachment.obj>
You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy Cookies policy