Converting XL date/times to Unix timestamps

W

whiz

hello friends,

Does anyone have a ready-made formula to convert XL
date/times(GMT+5:30) to Unix timestamps ?


Thanks in advance
 
J

JE McGimpsey

Unix timestamps are just elapsed seconds from 1/1/1970, so if the
date/time is in A1

=(A1-DATE(1970,1,1)-TIME(5,30,0))*86400

will give you a Unix datestamp relative to GMT (where 86400 is just 24
hours * 60 minutes/hr * 60 seconds/min)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top