-
Type: New Feature
-
Status: Resolved
-
Priority: Minor
-
Resolution: Duplicate
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Query & PageProvider
In NXQL it's often useful to be able to compute TIMESTAMP values from the current date.
Suggested syntax:
SELECT * FROM ... WHERE dc:created < NOW()
The NOW() function could take a string argument to represent a time duration to add/substract to the current date, like NOW('-P2DT3H4M'), based on the Duration.parse method (or the one in Period if there is no time component maybe?).