Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


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

Re: st: RE: RE: how to use timestamp of a file (that one is insheeting)


From   László Sándor <sandorl@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: RE: RE: how to use timestamp of a file (that one is insheeting)
Date   Tue, 21 Sep 2010 17:32:48 -0400

This is great, thank you!

Indeed, I wanted to have the time stamp in a local, for later
reference (in formulae). Sorry for not being clear at the first time.

Thank you very much,

Laszlo

On Tue, Sep 21, 2010 at 3:35 PM, Martin Weiss <martin.weiss1@gmx.de> wrote:
>
> <>
>
> As in http://www.stata.com/statalist/archive/2005-04/msg00087.html
>
>
>
> HTH
> Martin
>
>
> -----Original Message-----
> From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Martin Weiss
> Sent: Dienstag, 21. September 2010 21:33
> To: statalist@hsphsun2.harvard.edu
> Subject: st: RE: how to use timestamp of a file (that one is insheeting)
>
>
> <>
>
> *************
> capture which dirlist
> if _rc ssc install dirlist
>
> clear*
> set obs 10
> gen myvar=_n
> save myfile, replace
> dirlist myfile.dta
> ret li
>
> *************
>
>
> HTH
> Martin
>
>
> -----Original Message-----
> From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of László Sándor
> Sent: Dienstag, 21. September 2010 21:24
> To: statalist@hsphsun2.harvard.edu
> Subject: st: how to use timestamp of a file (that one is insheeting)
>
> Hi,
>
> I would like to use the date and time a file was created in some
> analysis. The operating system knows that time, of course. However, I
> found no Stata command that would fetch that data for me, nor a way I
> could use the command line to get that (though I know I can invoke
> that with -shell-).
>
> The file would be the same that an -insheet- command imports in my
> code, in case this helps anything.
>
> Thank you very much,
>
> Laszlo
>
>
>
> László Sándor
> PhD candidate
> Department of Economics
> Harvard University
>
> *
> *   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/
>
>
> *
> *   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   |   Site index