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

st: Re: display time (day and hour)


From   Friedrich Huebler <[email protected]>
To   [email protected]
Subject   st: Re: display time (day and hour)
Date   Fri, 13 Jan 2006 00:48:16 -0800 (PST)

Hans,

You can do this with the c(current_date) and c(current_time) system
values.

forvalues i = 1/10 {
  di `i'
  di c(current_date)
  di c(current_time)
}

Friedrich Huebler

--- "Hans J. Baumgartner" <[email protected]> wrote:
> I programmed up a routine that takes several days. To gauge how
> long it lasts until finished I would like to display the day
> and hour, when a new loop starts.


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
*
*   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