Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: displaying date AND time of a var containing exact time of acertain date


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: displaying date AND time of a var containing exact time of acertain date
Date   Mon, 22 Jul 2002 11:24:47 +0100

Edmond Ng
>
> I am just wondering if there is a way that I can display (by LIST,
> say) a date variable with time shown as well. This date
> variable that
> I have contains the exact time of the date, e.g. 14917.475 approx
> equals to 11:23am, 3rd Nov 2000, when a certain subject's data were
> entered into the dbase. I need to display the time when I do LIST as
> well.

A -list- would be straightforward given
code to calculate a string representation of the time of day.

Check out Bill Gould's code with

findit fraction day

Nick
[email protected]

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