Statalist


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

st: Sort on time


From   "Hugh Colaco" <[email protected]>
To   statalist <[email protected]>
Subject   st: Sort on time
Date   Tue, 11 Nov 2008 11:14:20 -0500

Hi Statalisters,

I have 3 variables; id, date, time.

"date" and "time" both have a storage type of str8 and are both in %9s
display format. I need to sort on "id", "date" and "time" in that
sequence.

I am able to get "date" as float %td, but I am having a problem with
"time". I got "time" as a double %tc, but it obviously comes out with
the date "01jan1960" plus the time. I have over 2 million
observations. I am using Stata 10.

Thanks in advance,

-- 
Hugh
*
*   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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index