Can someone guide me to convert timestamp. I am able to convert using various formulas like below, but it shows wrong dates. For example the timestamp 136006971590000000 I know is between October 10th and October 12th 2013, but it shows Feb 2013. I am using DBISQL (sybase). Below are some of the queries I am using but none of them show correct time.
select dateadd(ms, 136006971590000000-(1360069715900/1000)*1000, dateadd(ss, 1360069715900000000/1000+8*60*60, '19700101'))
select dateadd(second, 136006971590000000/100000000+8*60*60, '19700101')