use of oracle.sql.TIMESTAMP in project fastjson by alibaba.
the class TestOracleDATE method test_0.
public void test_0() throws Exception {
Timestamp date = new Timestamp(System.currentTimeMillis());
TIMESTAMP timestamp = new TIMESTAMP(date);
String text = JSON.toJSONString(timestamp);
Assert.assertEquals(date.getTime(), Long.parseLong(text));
}