This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I found an issue in code that GregorianCalendar with negative time and ERA as BC as below.
It is only happened for the certain date, most other time and calendar are correct.
Steve Jiang wrote:If the negative time is caused by ERA setting as 0 (BC) , I am wondering what reason could cause this issue? Thanks
The obvious reason would be that it's that way in the database.
How can we identify the DB data when it has negative time value?
That's a question about some unknown database, isn't it? Probably you know what the database is, but we don't. But just using basic SQL,
if you display a query which is sorted on the column containing that date, then the row containing that date should come at or near the