Hi All,
I have a weird problem. I have a session log which is in .bin format. I am converting the .bin file to xml format using Informatica(it is an ETL tool) and unix functionality called "convertLogFiles" . All this is working fine. The session log has a date column. After converting the log to xml format, the date value is getting converted to unix time - epoch time. The strange part is, after the conversion the epoch time is 13 digits. Below are some of the date values from the log:
Actual date value:
2014-03-13 20:30:11
After conversion, Epoch time value:
1394713811052
Now i need to load this epoch time value to a Oracle table. So i am converting it using the date command in unix. This epoch time value is not proper ! What i mean is, if i convert the epoch value to date format, it is giving some other value!
date -d @1394713811052
Output i am getting
Sun Sep 21 07:04:12 SGT 46166
Please help in resolving this issue. Or is there any way where i can avoid converting the time to epcoh value.