Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Epoch time (aka Unix time) in Stata


From   Michael Costello <michaelavcostello@gmail.com>
To   statalist <statalist@hsphsun2.harvard.edu>
Subject   st: Epoch time (aka Unix time) in Stata
Date   Wed, 3 Oct 2012 00:01:45 -0400

I have quite a bit of date information that is stored in epoch time
(aka Unix time).  I need to convert it to something readable.  I found
this post (http://www.stata.com/statalist/archive/2002-09/msg00518.html)
 in the archives, but the code doesn't seem to run (perhaps because of
differences in Stata since 2002).  Does anyone know an easy method, or
has anyone written a function to do these conversions?

-Michael
--
Michael Costello

"To call in the statistician after the experiment is done may be no more
than asking him to perform a post-mortem examination: he may be able to say
what the experiment died of."  -Sir Ronald Aylmer Fisher, FRS
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index