Date
1 - 2 of 2
JPQL date literrals: documentation error
passignat@...
Regarding date format, there is a error in the documentation. Month are specified as 'mm' like minutes. It would be better to mention MM (looks like SimpledateFormat) {d 'yyyy-mm-dd'} - a Date {t 'hh:mm:ss'} - a Time {ts 'yyyy-mm-dd hh:mm:ss.f...'} - a Timestamp Stephane |
|
Well it maybe would, BUT references in the JDBC spec don't do that. See https://download.oracle.com/otn-pub/jcp/jdbc-4_1-mrel-spec/jdbc4.1-fr-spec.pdf
and in particular section 13.4.2. Clearly this is in SQL space not Java space hence there is no direct parallel with SimpleDateFormat If you feel strongly about it, why not provide a pull request for the docs https://github.com/datanucleus/docs-accessplatform |
|