Statalist


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

Re: st: System Macros


From   Sergiy Radyakin <serjradyakin@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: System Macros
Date   Wed, 29 Jul 2009 12:24:26 -0400

Dear Mr. Li,

you can use:
. display c(current_date)
29 Jul 2009

. display c(current_time)
12:16:27

If you type
creturn list
you will get a long list of other system settings with links to
corresponding help files.

If you have manuals, this topic is covered in the User's Guide,
U18.3.12 page 200 (for Stata 10).

2StataCorp: is the use of $S_DATE and $S_TIME discouraged in the
modern versions and c(current_...) is preferable in any way?

Best wishes,
   Sergiy Radyakin


On Wed, Jul 29, 2009 at 8:55 AM, User Stata<statachina@gmail.com> wrote:
> Dear Users,
>
>   i am new to this software, please forgive my narive questions
>
>   the truth is that i cannot find helps for some system variables
> like $S_DATE, $S_TIME. I guess there are many more certain variables
> but where can i find a list?
>
>   thanks
>
> --
> Chuntao Li
> Chinese Academy of Finance and Development
> Central University of Finance and Economics
> Beijing, China
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
>

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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