I am trying to convert from unix/epoch time to stata time. I've read a number of instructions, including the manual (http://www.stata.com/manuals13/ddatetime.pdf) but I must be doing something wrong when I follow them. I am using Stata IC 14.2 on a Windows 10 machine.
Here is what I do:
Do you see my error?
Robert Kraut
Carnegie Mellon University
Here is what I do:
generate double statatime = unixtime + mdyhms(1,1,1970,0,0,0)The input 1441422894 should generate 05Sep2015 03:14:54 but instead generates 17jan1970 16:23:42
format statatime %tC
Do you see my error?
Robert Kraut
Carnegie Mellon University
Comment