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" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
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
n.j.cox@durham.ac.uk

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index