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

st: Sort on time

From   "Hugh Colaco" <>
To   statalist <>
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

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,

*   For searches and help try:

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