Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Implement Date arithmetic #347
Currently, it is not possible to do date arithmetic in QueryDSL (see http://stackoverflow.com/q/15026895/537738).
Please add support for some functions like adding intervals (
added a commit
Feb 25, 2013
Would it be possible to add casts between date/time/timestamp as well (not exactly arithmetic I know). It's quite common to have to strip down time part from timestamp and closest thing I found from stackoverflow was to do it via stringValue() which isn't that efficient. This might be already possible in more generic way but I doubt it since there is castToNum(). Would a Sledge Hammer style I-Know-What-I'm-Doing type of blind casting be even possible.