I have extracted some emails from gmail into postgresql. the dates are stored in numeric. some few sample dates are
1399586523000
1399773692000
1400191333000
1400378501000
1400796072000
1401008483000
1401400912000
1401588106000
when I convert them into timestamp
to_timestamp(date/1000) at time zone 'UTC+10' as senttimestamp
The Issue is that neither the timezone match nor the minutes part in the email match. I could have easily shifted the timezone forward or backward to adjust but the minute part of the date also does not match. I doubt that maybe I am incorrectly coverting from numeric to timestamp
For example, 1399586523000 timestamp should be Thu, May 8, 2014 at 4:21 PM but when I use the
to_timestamp(date/1000) at time zone 'UTC+10' as senttimestamp
None of the converted timestamp match the actual sent timestamp
Can someone please help
Arif