Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Christopher Baum <kit.baum@bc.edu> |
To | "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu> |
Subject | re:st: RE: Inaccurate date-time variable |
Date | Mon, 17 Oct 2011 10:06:18 -0400 |
<> Furthermore, this is an Extremely Bad Idea: gen clock_date2= Clock(clock_date, "YMDhms") All variables which are to store intraday time information should be declared as double, as their precision relies on large integer values being retained as such. Making them floats messes that up big time (groan), as the help and manual states. Kit Kit Baum | Boston College Economics & DIW Berlin | http://ideas.repec.org/e/pba1.html An Introduction to Stata Programming | http://www.stata-press.com/books/isp.html An Introduction to Modern Econometrics Using Stata | http://www.stata-press.com/books/imeus.html * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/