Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Using both date and time


From   "Mingfeng Lin" <[email protected]>
To   [email protected]
Subject   st: Using both date and time
Date   Sun, 24 Dec 2006 16:29:54 -0500

Greetings!

Is there a way to tell Stata to recognize a time stamp like this, with
both date and time?

11JAN02:10:45:41

I know how to read in the two parts separately (the date 11JAN02 and
the time 10:45:41) but don't know how to read them in together, so
that Stata not only knows 11JAN02:10:45:41 is different from
12JAN02:10:45:41, but can also give a meaningful calculation (such as
the difference between the two times, most likely in terms of
seconds).

Thanks very much for your help, and happy holidays.

Mingfeng
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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