I'm reading a record of data from a cassandra table. Creating a Java object that I built. Setting all the values with what I get from the record of data (I'm getting these values from the record using Jackson). When I look at the json request I'm seeing a long doulbe like value. Wondering what format that is in? And then why it's negative? Here's what I got...
JsonNode ccEventNode = new ObjectMapper().readTree(row.getString(0));
ccEventNode.get("last_pyflt_dt")
This gives me a value of "1901-01-01". I then...
CCEvent ccEvent = new CCEvent;
ccEvent.getHistory().setLast_pyflt_dt(new SimpleDateFormat("yyyy-MM-dd").parse(ccEventNode.get("last_pyflt_dt").textValue()));
This gives me a value for the Date field I just set of "Tue Jan 01 00:00:00 EST 1901"
But when I read the JSON request once I'm done setting all the other values I am seeing the value as...
"lastPaymentFloatDate":-2177434800000
My first question is. What is that value? Is it number of minutes from a certain date? Why is it negative? It's causing issues when I send it to the webservice. When I have other dates that are like "2020-02-04" it doesn't cause any issues. It also shows me in the request a large number like the one above but it's not negative. A bit confused.