From: Shaun F. <for...@gm...> - 2010-11-15 00:11:35
|
Hey, Wondering if/how it's possible to use the current date/time in a CQL query. For example is it possible in GT to create a filter string that will grab the features that were updated in the past 24 hours, without dynamically creating the filter string each time which includes the current date/time (I need the filter as a configuration item). If it's not currently there any pointers on how/where I can hook in and add it myself would be appreciated. At the moment it looks like I may need to write a wrapper around the CQL compiler to parse the filter string myself and replace sysdate() (or something similar) with a string representing the current date, but if it's already there or I can plugin to the compiler directly that'd be better (since I'd rather use a Date object than worry that I have the correct date format for my string). Cheers, Shaun |